flutter_app_template
flutter_app_template copied to clipboard
Flutter App Templete is a project that introduces an approach to architecture and project structure for developing Flutter apps.
Flutter App Template
"Flutter App Template" is a project that introduces an approach to architecture and project structure for developing Flutter apps.
packages/flutter_app
State Management
Code Generation
Hooks
Router
flutter_app Project settings
| Category | Description | Codes |
|---|---|---|
| FVM | Flutter Version Management | .fvm/fvm_config.json |
| Dart | Dart version | pubspec.yaml |
| Dart | Lint / Analyze | analysis_options.yaml |
Packages overview
flutter_app
This is a template package for Flutter apps with dev, stg, and prod environments.
Also check the flutter_app/README.md.
notification_receiver
This package takes care of functions (responsibilities) related to setting notification permissions and receiving push notifications for the application.
themes
This package is responsible for the appearance of ThemeData and other appearance-related data used in Flutter apps.
How to start development
make
FVM and Melos are now installed.
What to do in a new repository using this template
- Replace App ID with your App ID.
jp.co.altive.fat->your.domain.id - Change
CFBundleNameandCFBundleDisplayNameinios/Runner/info.plistto your app name. - Change
FlutterATindefaultConfig/resValueofandroid/app/build.gradleto your app name. - Create a project in Firebase.
- Create an Android app, download
google-services.json, and place it inandroid/app/src/{dev or stg or prod}. - Create an iOS app, download
GoogleService-Info.plist, and place it inios/{dev or stg or prod}. - Modify
GOOGLE_REVERSED_CLIENT_IDin{dev, stg, prod}.xcconfigto match the contents of eachGoogleService-Info.plist. - Create a Web app and modify the parameters in
firebaseConfiginweb/index.htmlaccording to the Firebase SDK additions. - apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId, appId, measurementId
How to create a new package
# Package
flutter create -t package packages/{package_name}
# App
flutter create --org jp.co.altive packages/{app_name}
References
Internationalization User Guild PresentationDomainSeparation Flutter Architecture Blueprints
Thank you!