flavorz 1.0.1 copy "flavorz: ^1.0.1" to clipboard
flavorz: ^1.0.1 copied to clipboard

outdated

Generate Different Environments For Your Application From A Single Json File. 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()
}
5
likes
0
pub points
10%
popularity

Publisher

verified publisheraymanz.dev

Generate Different Environments For Your Application From A Single Json File. With Pure Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

build

More

Packages that depend on flavorz