flutter_flavor 1.1.2
flutter_flavor: ^1.1.2

Flutter Android iOS web

We can create different flavors, and thus have different instances of our apps before publishing it on the App Store and Google Play.

example/lib/main.dart

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

import 'my_app.dart';

void main() {
  FlavorConfig(
    color: Colors.red,
    location: BannerLocation.topStart,
    variables: {
      "counter": 0,
      "baseUrl": "https://www.example1.com",
    },
  );
  return runApp(MyApp());
}
32
likes
110
pub points
89%
popularity

We can create different flavors, and thus have different instances of our apps before publishing it on the App Store and Google Play.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

lrferreiro910208@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_flavor