This is a boilerplate project for Flutter using the GetX state management.
- GetX for state management
- .env File
1. Clone the repository
git clone https://github.com/aseven-team/flutter_getx_boilerplate.git2. Install the dependencies
flutter pub get3. Configure the project
- Change package name
dart run change_app_package_name:main id.co.aseven.flutter_boilerplate
Above command will change the package name and application id to id.co.aseven.flutter_boilerplate.
- Create environment file
Copy the .env.example file to *.env and change the values.
- Change launcher icon
To change the launcher icon, replace the assets/launcher_icon.png file with your icon and run the following command:
dart run flutter_launcher_iconsTake a look at the Flutter Launcher Icons package for more information.
Android
To build the project for Android, follow the instructions in the Flutter documentation: https://docs.flutter.dev/deployment/android
Because we are using .env file defining some configurations, don't forget to add
--dart-define-from-file=.envto the build command.
Example:
flutter build apk --dart-define-from-file=.enviOS
@todo