A template for new Flutter project.
- Install Flutter: https://docs.flutter.dev/get-started/install
- Install Flutter Intl extension for VS Code to auto generate intl code from
.arbfiles- If you don't want to use intl, please replace all
S.of(context)...with custom string
- If you don't want to use intl, please replace all
- Multi platforms
- Tested on Android API 32 (Pixel 4a)
- Screens
- Welcome screen
- Login / SignUp Screen
- List Screen
- Basic components
- Button
- Card container
- Scrollable page container with padding
- Form fields (Email, passwords, text)
- Basic shapes (circle)
- l10n locales support
zh-TW
- Services
- Dio
- Sample fake data
- Data model examples
- Theming
- Using Material 3
- Custom Icon Support
- Routing: Navigator
- Bottom Navigation Tab (Material 3)
- Utils
- Datetime extension
- String extension
- Password and email validation
- Animation value mapping function
- Test build on ios device
- Test dio backend connection
- Form screen and components
- Detailed Login/SignUp screen
- Documentation for utils api and components
- Deep linking
- Notification
- Local storage
- Web support
- Local database
- In-app purchase or payment
flutter-template
├───build
├───assets
│ ├───icons
│ └───images
├───lib
│ ├───generated
│ │ └───intl
│ ├───l10n
│ ├───models
│ │ └───api
│ ├───services
│ ├───theme
│ ├───utils
│ └───views
│ ├───widgets
│ ├───screens
│ └───route.dart
├───test
├───android
├───ios
├───linux
├───macos
├───web
└───windows
git clonethis repositoryflutter pub getto get all dependencies
- Replace all
flutter_templatewith the new app name (separate word by underscore_) - Change
com.example.flutter_template(android) andcom.example.flutterTemplate(ios) to the new package name
- Change
titleinlib/utils/config.dart - Change
android:labelinandroid\app\src\main\AndroidManifest.xml - Change "Flutter Template" in
ios\Runner\Info.plist(CFBundleDisplayName)
- Replace
assets/icons/icon.pngwith the new icon image - Add a line
flutter.minSdkVersion=16inandroid/local.properties flutter pub run flutter_launcher_icons:main
To add string value to existing locale (zh-TW):
- Get Flutter Intl Extension (for VS Code)
- Add key-value pair in
lib/i10n/intl_zh_Hant_TW.arb - Save and the extension will generate
.dartcode automatically
For adding locales or further information, please refer to the documentation at the extension page.
flutter build android
Update to newer flutter version:
flutter channel stableflutter upgradeflutter pub upgrade