sa_flutter_flavor 0.0.3 copy "sa_flutter_flavor: ^0.0.3" to clipboard
sa_flutter_flavor: ^0.0.3 copied to clipboard

provides a way of indicating and tracking Dart build flavors.

example/lib/main.dart

import 'package:example/src/app/app.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:sa_flutter_flavor/sa_flutter_flavor.dart';

/// This is the PROD version of the app
void main() {
  runApp(ProviderScope(
      child: App(
    flavor: FlavorConfig(
        name: "PROD", isProduction: true, attributes: {'title': "Prod App"}),
  )));
}
2
likes
150
points
24
downloads

Publisher

verified publisherspiralarm.uk

Weekly Downloads

provides a way of indicating and tracking Dart build flavors.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on sa_flutter_flavor