flutter_flavor 1.1.0
flutter_flavor: ^1.1.0 copied to clipboard
flutter_favor allows you to quickly configure and define dynamic variables for each flavor in your project. The flavors, as well as their names; they are dynamically defined by the developer or develo [...]
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_flavor/flutter_flavor.dart';
import 'my_app.dart';
void main() {
FlavorConfig(location: BannerLocation.topEnd, variables: {
"counter": 0,
"baseUrl": "https://www.example1.com",
});
return runApp(MyApp());
}