Server side ui project is written using Mirai plugin to demonstrate how to parse Mirai syntax to flutter widgets
- Just change JSON file name from assets folder in
main.dart
file and restart or re-run the project to see changes
Remote banner project uses Firebase Remote Config to control UI from server and to make A/B testings
-
To use this project, you'll have to add Firebase to your project
-
Then register your app to Firebase [for me I use FlutterFire for configuration]
-
Add firebase remote config conditions in your firebase console and enable firebase remote config api for this project (I know it's a lot of steps)
-
For adding remote config conditions, just scam
remote_config_service.dart
file. There are these two code snippets in it:
bool get showMainBanner => _remoteConfig!.getBool(_Keys.showMainBanner);
String get remoteAppTitle => _remoteConfig!.getString(_Keys.remoteAppTitle);
class _Keys {
static String showMainBanner = "show_main_banner";
static String remoteAppTitle = "app_title";
}
So, you'll have to add show_main_banner (boolean value)
and app_title (string value)
keys in firebase remote config console.
🎉 Bingo!😉 You can start running and testing your app.
My slides for GDG Yangon 2023: https://speakerdeck.com/ye_lwin_oo/server-driven-ui-in-flutter