Follow these steps to use the template repository featuring properly setup Gradle files for environment configuration, repository initialization, Flutter Version Management (FVM) initialization, and Github Actions integration.
-
Use the repository as template. This will create a repository of your own and copies the template.

-
Have Flutter version management initialized. You can use any version you want. However, if there are any conflicts, errors, and outdated or deprecated methods, it is your responsibility to resolve them. This template initially uses flutter version
3.13.7. Run the followingdart pub global activate fvm
fvm use <VERSION_NUMBER>
Go to the settings and look at the path of the Flutter SDK being used. It should be pointed to “flutter_sdk” in “.fvm” folder of the project’s directory.
-
To rename all package names associated with android files run this:
flutter pub run change_app_package_name:main com.package.test_fork
Note: Replace
com.package.test_forkwith your desired package name. Take note that this will only replace package names for android files. Any values such as theapp_namedeclared for each application flavor inbuild.gradleshould be changed manually (see image below). -
Replace
nameinpubspec.yamlwith desired application package name. Resolve import conflicts across files. -
Run pub get and build_runner:
flutter pub get
flutter packages pub run build_runner build --delete-conflicting-outputs --verbose
-
Setup Run Configurations. Set main.dart as entry point and use a build flavor.

