flutter_flavor 1.0.1+2 copy "flutter_flavor: ^1.0.1+2" to clipboard
flutter_flavor: ^1.0.1+2 copied to clipboard

outdated

flutter_favor allows you a quick configuration and definition of dynamic variables for each flavor of your project. flutter_favor has 3 basic flavors defined: PROD, DEV and TEST.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_flavor/flutter_flavor.dart';

import 'my_app.dart';

void main() {
  FlavorConfig(
      environment: FlavorEnvironment.PROD,
      name: "PRODU",
      color: Colors.red,
      location: BannerLocation.topEnd,
      variables: {
        "counter": 0,
        "baseUrl": "https://www.example1.com",
      });
  return runApp(MyApp());
}
362
likes
0
pub points
97%
popularity

Publisher

unverified uploader

flutter_favor allows you a quick configuration and definition of dynamic variables for each flavor of your project. flutter_favor has 3 basic flavors defined: PROD, DEV and TEST.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_flavor