flutter_flavor 3.1.4 flutter_flavor: ^3.1.4 copied to clipboard
We can create different flavors, and thus have different instances of our apps before publishing it on the App Store and Google Play.
import 'package:flutter/material.dart';
import 'package:flutter_flavor/flutter_flavor.dart';
import 'app.dart';
void main() {
FlavorConfig(
variables: {
"counter": 0,
"baseUrl": "https://www.example1.com",
},
);
runApp(const MyApp());
}