/flutter-project-accelerator

Flutter project accelerator that can serve as reference for bootstrapping projects.

Primary LanguageDartMIT LicenseMIT

Flutter Project Accelerator

Flutter project accelerator that can serve as reference for bootstrapping projects.

Includes localization via services based approach to manage state and flutter itself for UX

STATUS: Alpha

Note: This repo is under active change and this code should be used as reference implementation ONLY and not used in a production application

Getting Started

  1. Read and install all things mentioned in flutter getting started guide

https://flutter.dev/docs/get-started/install

  1. Setup editor - can use VS Code - https://flutter.dev/docs/get-started/editor?tab=vscode

  2. Setup Device Emulator - Android: https://flutter.dev/docs/get-started/install/windows#set-up-your-android-device or iOS: https://flutter.dev/docs/get-started/flutter-for/ios-devs

  3. Ensure a Device is available and running via emulator

  4. Check that flutter development setup is ok:

flutter doctor

If things are not building try:

flutter clean
  1. Run the app via terminal - type:
flutter run

Features

  • Global navigation via app header and drawer menu
  • Search
  • Localization via local json files and a service based approach
  • Form validation

Notes

Navigation/Drawer

There are a number of ways to create a drawer and this project uses material version of Drawer with custom layout

Layout

BLoC

Enable Reactive Programming via BLoC pattern - this project does not use this pattern but it can be useful

Storage

This project stores user selected language code in local data store

Forms

Search

Icons

Localization

There are a number of ways to do localization - this project uses a service to manage converting localized keys to values stored in json for given locale. Below are some links for more traditional approach using AppLocalizations class and delegates

Data

https://www.developerlibs.com/2018/11/flutter-how-to-parse-local-json-file-in.html

General Resouces