template_app_bloc
基本機能を備えたテンプレート Flutter プロジェクトで、bloc アーキテクチャに基づいています。
- スター
- 181
- フォーク
- 43
- 最終プッシュ(UTC)
- 2024/10/07
- プロジェクト状態
- 公開中
元の README
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Template App with flutter_bloc
This project provides an application template using the bloc state management method with Flutter. The project includes user CRUD (Create, Read, Update, Delete) operations and authentication, serving as a realistic example for real-world scenarios. In order to prove that native-looking applications can be developed with Flutter if desired, Cupertino widgets were preferred instead of Material widgets in the user interface of the project.
The current latest version of Flutter [3.24.3] was used during the development process.
Getting Started
API Integration
A Rest API is used for user operations, and the API code is not included in this repository. You can develop API endpoints according to the UserModel class in the project to make it suitable for use. You need to update the BASE_URL value in the '.env' file content to match your API structure. You can find the naming used for CRUD and authentication endpoints in the UserService class, and you may need to revise it according to your API structure.
Firebase Integration
The project uses Storage for uploading images and accessing them via URL, Extensions and Firestore Database for email infrastructure and Functions for triggering email sending. Therefore, you will need a Firebase project. Since the firebase_options.dart file is not included in the Template App project content, it will throw an error when you clone the repo. Perform Firebase integration to add this file to the project.
Firebase Trigger Email Extension Integration
For email verification, a verification code is sent to the email address provided by the user. The Firebase Trigger Email extension is used for email infrastructure. You need to activate this extension via the Firebase console. Besides verification code sending, the email infrastructure is used for different scenarios as well. Email sending is triggered by Firebase Cloud Functions.
Firebase Cloud Functions Integration
The project already includes the functions folder and firebase.json file to be added with Cloud Functions. If you specify that the functions/index.js file should be overwritten while integrating cloud functions, you will delete the cloud functions that you need to deploy for the email infrastructure from the file. You can skip the overwrite step with the "No" option, or if it is overwritten, you can copy and deploy the functions again from the relevant file in this Github repo.
Screenshoots
Hover the mouse cursor over the images for explanations.
Problems you may encounter
To prevent [...lowerCamelCase identifier] problems caused by the easy_localization package, it will be sufficient to add the [constant_identifier_names: false] definition under the [rules:] statement in the analysis_options.yaml file in the project directory.
Things to know
After adding new string definitions to the [language-code].json (such as en.json, tr.json) file, run the following codes in the terminal one by one so that the easy_localization structure can recognize these changes:
dart run easy_localization:generate --source-dir assets/translations
dart run easy_localization:generate -S assets/translations -f keys -o locale_keys.g.dart
カテゴリー
使用している依存関係
依存関係一覧 24 件
- flutter
{"sdk":"flutter"} - cupertino_icons
^1.0.6 - http
^1.2.1 - flutter_bloc
^8.1.5 - equatable
^2.0.5 - flutter_dotenv
^5.1.0 - shared_preferences
^2.2.2 - easy_localization
^3.0.5 - permission_handler
^11.3.0 - device_info_plus
^10.0.1 - uuid
^4.3.3 - firebase_core
^2.27.1 - firebase_storage
^11.6.10 - cloud_functions
^4.6.9 - cached_network_image
^3.3.1 - photo_view
^0.14.0 - image_picker
^1.0.7 - image_cropper
^5.0.1 - path_provider
^2.1.2 - gal
^2.3.0 - pull_down_button
^0.9.3 - go_router
^14.1.3 - flutter_test開発用
{"sdk":"flutter"} - flutter_lints開発用
^3.0.0
ランキング
プロジェクトに合うリポジトリを選ぶには?
用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
- 名前・作者・説明で検索し、技術トピックで絞り込みます。
- スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
- 利用前に GitHub で README、ライセンス、Issues を確認します。
情報源と管理
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗