flutter_starter_kit
一個適用於初學者的入門工具包,使用 Bloc 模式、RxDart、sqflite、Fluro 和 Dio 來架構 Flutter 項目。此工具包以應用商店應用為範例。
- 星標
- 804
- 分支
- 130
- 最近推送(UTC)
- 2022年5月18日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Flutter Starter Kit - App Store Example
A starter kit for beginner learns with Bloc pattern, RxDart, sqflite, Fluro and Dio to architect a flutter project. This starter kit build an App Store app as a example
Feature
- Bloc Pattern
- Navigate pages by Fluro
- Local cache by using sqflite
- Restful api call by using Dio
- Database debugging (Android Only) by using flutter_stetho
- Loading Network Image
- Localization by using gen_lang and lang_table
- Environment Variable & Project Config (Like App Name, Bundle Id) based on different project flavour (Development, Staging & Production)
- Build pojo by using json_serializable
- Update each list item instead of re-rendering whole list view when data set has changed on a list item
- Hero animation
- Show empty View when the list view is empty
Install
- Follow flutter official setup guide to set up flutter environment
- Download flutter version 1.17.3
Remark: This starter kit support Flutter version - 1.17.3. It is because Flutter may have breaking change on latest version.
Run Config
- Click 'Edit Configuration'
- Create different run configs for flavours
Useful Command
Run flutter_starter_kit
For development,
flutter run --flavor development -t lib/config/main_development.dart
For staging,
flutter run --flavor staging -t lib/config/main_staging.dart
For production,
flutter run --flavor production -t lib/config/main_production.dart
Generate json serialize and deserialize functions
flutter packages pub run build_runner build --delete-conflicting-outputs
lang_table
flutter packages pub run lang_table:generate --platform=airTable --input=https://api.airtable.com/v0/appZmh0WMg3y6APAg/example --api-key={YOUR API KEY} --target=Flutter
gen_lang
flutter packages pub run gen_lang:generate
Known Issues
Migration Guide
- If you wanna to use this project as your project's base, please read migration guide
Reference
From other platform?
- Flutter for Android developers
- Flutter for iOS developers
- Flutter for React Native developers
- Flutter for web developers
- Flutter for Xamarin.Forms developers
Learn Widget & Layout
Bloc Pattern
Json Serialization
Localization
- A new approach of localization in Flutter
- Flutter: internationalization tutorials: Part 3— Android Studio plugin
- 讓 Flutter App 支援多國語系的開發流程
Flavouring
Advance Topic
Powered By
語言DartRubyKotlinSwiftObjective-C
分類
使用的依賴
依賴清單 20 項
- flutter
{"sdk":"flutter"} - flutter_localizations
{"sdk":"flutter"} - fluro
1.6.3 - dio
3.0.9 - logging
0.11.4 - json_annotation
3.0.1 - sprintf
4.0.2 - rxdart
0.22.6 - cached_network_image
2.0.0 - sqflite
1.3.0+2 - smooth_star_rating
1.1.1 - flutter_stetho
0.5.2 - analyzer
0.39.10 - cupertino_icons
0.1.3 - flutter_platform_widgets
0.50.0 - flutter_test開發依賴
{"sdk":"flutter"} - build_runner開發依賴
1.10.0 - json_serializable開發依賴
3.3.0 - gen_lang開發依賴
0.1.3 - lang_table開發依賴
0.2.0
所在榜單
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗



