config library Null safety
Constants values for app customization
Classes
Constants
- api_path → const String
-
Base endpoint, may changed between wp versions/plugins
'/wp-json/wp/v2'
- calendar_check_url → const String
-
URL to fetch last update date of each calendar
'https://unicon20-app-doc.lpo.host/app_calendars/'
-
calendar_utc_offset
→ const Map<
String, int> -
UTC offset of timezone where events take place
{'hour' : 1, 'minute' : 0}
-
calendars
→ const Map<
String, Map< String, dynamic> > -
{'admin' : {'url' : 'https://calendar.google.com/calendar/ical/j39mlonvmepkdc4797nk88f7ok%40group.calendar.google.com/public/basic.ics', 'color&…
-
categories_weight
→ const Map<
String, int> -
Categories and priority
Only top priority category will be shown for each articles
{'priority' : 10, 'information' : 5}
- default_notif_channel_name → const String
-
'UNICON20'
- default_notif_channel_slug → const String
-
Notifications channel for Android if post category doesn't match with those configured below
'unicon20'
- event_year → const int
-
Show year with day/month for events after/before this year
2022
- geoservice → const String
-
Geocoding service url : should accept a complete url-encoded address
and return a GeoJSON with one feature of type point
'QUERY' will be replaced by url encoded adresse,
'https://nominatim.lpo.host/search?q=QUERY&limit=1'
- important_category_name → const String
-
Category which will be showed as important
'priority'
- map_default_lat → const double
-
Map default location
45.1268
- map_default_lon → const double
-
5.7266
- max_article_date → const String
-
Don't get articles from wordpress before this date
'2020-12-21'
-
supported_locales
→ const List<
List< String> > -
Locales used in wordpress translation
first is locale, second country code
[['en', 'US'], ['fr', 'FR'], ['de', 'DE'], ['ja', 'JP'], ['ko', 'KR'], ['es', 'ES'], ['it', '…
- wordpress_host → const String
-
WordPress base URL (fetched from env to ease development)
String.fromEnvironment('WP_HOST', defaultValue: 'http://unicon-test-wordpress.lpo.host')
Properties
- default_calendar_color ↔ MaterialColor
-
Calendars
read / write