You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thank you for your interest and contributions to this Flutter boilerplate template. We've received a suggestion to add support for Flutter flavors to our template, and we think it's a great idea!
For those unfamiliar, Flutter flavors are build configurations that allow us to create separate environments for the same application using the same code base. This is particularly useful when we need to create multiple versions of an app, such as a development version, a production version, or different versions for different clients. These flavors can be customized to have different API endpoints, resources, app icons, and more, without duplicating the codebase. You can read more about it here.
Here's a brief overview of what needs to be done:
Set up the Environment: Define build configurations in Xcode for iOS and specify the flavor in the build command for Android.
Define Flavor-Specific Configurations: Customize various aspects of the app, including API endpoints, resources, app icons, and more, without duplicating the codebase.
Testing: Run the app with the desired flavor using the flutter run command with the --flavor option.
flutter run --flavor development --target lib/main_development.dart
flutter run --flavor staging --target lib/main_staging.dart
flutter run --flavor production --target lib/production.dart
We believe this would be a valuable addition to our template, making it more flexible and adaptable to various development scenarios. If anyone is interested in taking on this task, please feel free to comment below or submit a pull request. We appreciate all contributions and look forward to seeing this feature implemented!
Best,
The text was updated successfully, but these errors were encountered:
Hello everyone,
Firstly, thank you for your interest and contributions to this Flutter boilerplate template. We've received a suggestion to add support for Flutter flavors to our template, and we think it's a great idea!
For those unfamiliar, Flutter flavors are build configurations that allow us to create separate environments for the same application using the same code base. This is particularly useful when we need to create multiple versions of an app, such as a development version, a production version, or different versions for different clients. These flavors can be customized to have different API endpoints, resources, app icons, and more, without duplicating the codebase. You can read more about it here.
Here's a brief overview of what needs to be done:
Set up the Environment: Define build configurations in Xcode for iOS and specify the flavor in the build command for Android.
Example for iOS:
Example for Android:
Define Flavor-Specific Configurations: Customize various aspects of the app, including API endpoints, resources, app icons, and more, without duplicating the codebase.
Testing: Run the app with the desired flavor using the
flutter run
command with the--flavor
option.We believe this would be a valuable addition to our template, making it more flexible and adaptable to various development scenarios. If anyone is interested in taking on this task, please feel free to comment below or submit a pull request. We appreciate all contributions and look forward to seeing this feature implemented!
Best,
The text was updated successfully, but these errors were encountered: