flutter_flavorizr
flutter_flavorizr copied to clipboard
flutter web
hello dear Do you have any plans to support flutter web ?
Hi @kiaxseventh , since Flutter doesn't really want to support flavors for Flutter web it's a bit tricky to manage all the surrounding stuff directly by flutter_flavorizr. Anyway, it's still possible to launch custom targets after you flavorized your project
you can use dart-define, example: flutter build web --dart-define FLAVOR="you-flavor"
inside the app: const flavor =String.fromEnvironment('FLAVOR', defaultValue: 'you-flavor');
Hi @kiaxseventh , since Flutter doesn't really want to support flavors for Flutter web it's a bit tricky to manage all the surrounding stuff directly by flutter_flavorizr. Anyway, it's still possible to launch custom targets after you flavorized your project
Hi Sir, I am able to run web app with flavors but not able to build web app with flavors, is there any solution for this. Working: fvm flutter run --flavor flavor_name -t lib/main_flavor_name.dart -d chrome Not Working: fvm flutter build web --flavor flavor_name -t lib/main_flavor_name.dart
related https://github.com/flutter/flutter/issues/141371