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"}),
  )));
}
1
likes
130
pub points
15%
popularity

Publisher

verified publisherspiralarm.uk

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