搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫brizaldi/flutter-project-template-riverpod

flutter-project-template-riverpod

使用 Riverpod 的新 Flutter 項目起始範本。

flutter-project-template-riverpod 專案封面
星標
102
分支
24
最近推送(UTC)
2023年12月6日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

flutter-project-template-riverpod

Requirements

Flutter: >=3.16.0 Dart SDK: >=3.2.0

Supported Platforms

Android iOS Web Windows MacOS Linux
✅ ✅ ✅ ✅ ❌ ❌

Live Demo

https://brizaldi.github.io/flutter-project-template-riverpod/

Installation

  • Add Flutter to your machine
  • Open this project folder with Terminal/CMD
  • Ensure there's no cache/build leftover by running flutter clean in the Terminal
  • Run in the Terminal flutter packages get
  • Run in the Terminal dart run build_runner build --delete-conflicting-outputs

Additional steps for iOS

  • Open ios folder inside Terminal/CMD
  • Run in the Terminal pod install
  • Run in the Terminal pod update

Running the App

  • Open Android Emulator or iOS Simulator
  • Run flutter run --flavor {RELEASE_TYPE} --dart-define flavor={RELEASE_TYPE}
  • Supported release type: development, staging, and production

Build an APK

  • Run flutter build apk --flavor {RELEASE_TYPE}
  • The apk will be saved under this location: [project]/build/app/outputs/flutter-apk/
  • We can also build appbundle (.aab) by running this command: flutter build appbundle --flavor {RELEASE_TYPE} --dart-define flavor={RELEASE_TYPE}

Build for iOS

  • Follow the tutorial from this link: https://flutter.dev/docs/deployment/ios#create-a-build-archive-with-xcode
  • Don't forget to add the release type behind the build command
  • For example flutter build ipa --flavor {RELEASE_TYPE} --dart-define flavor={RELEASE_TYPE}

For more information, check out the official documentation

Bahri Rizaldi GitHub avatar
GitHub 作者

Bahri Rizaldi ↗

語言DartC++CMakeHTMLCSwiftKotlinObjective-C

分類

使用的依賴

依賴清單 32 項

所在榜單

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗