flavorz 1.0.0
flavorz: ^1.0.0 copied to clipboard
Different Environments For Your Application, With Pure Dart
example/flavorz_example.dart
import 'env.g.dart';
/// After you running `dart run build_runner build`,
/// you can write the following in your main (uncomment the lines)
/// and import the needed files.
///
/// For more info. refer to the README.md file
void main() async {
//WidgetsFlutterBinding.ensureInitialized();
await Environment.init();
if (Environment().type == EnvironmentType.dev) {
print('We are running the dev environment!');
}
//runApp()
}