Skip to content

wem2017/flutter_bloc_boilerplate

Repository files navigation

Boilerplate Project

A boilerplate project created in flutter using Bloc. Boilerplate supports build mobile apps to faster.

Getting Started

The Boilerplate contains the minimal implementation required to create a new library or project. boilerplate use for build app SaleBolt

alt text

alt text

How to Use

Step 1:

Download or clone this repo by using the link below:

https://github.com/wem2017/flutter_bloc_boilerplate.git

Step 2:

Go to project root and execute the following command in console to get the required dependencies:

flutter pub get

Step 3:

Open with Editer VSCode or Android Studio and run

Boilerplate Features:

  • SplashScreen
  • Login
  • Home
  • Routing
  • Theme
  • Dio
  • Database
  • Validation
  • Logging
  • Multiple Theme, Dark Theme, Custom Colors
  • Multiple language
  • Multiple font
  • CI/CD github action

Folder Structure

Here is the core folder structure which flutter provides.

flutter_bloc_boilerplate/
|- android
|- build
|- ios
|- lib

Here is the folder structure we have been using in this project

lib/
|- api/
|- blocs/
|- configs/
|- database/
|- models/
|- repositorys/
|- screens/
|- utils/
|- widgets/

Conclusion

I will be happy to answer any questions that you may have on this approach, and if you want to lend a hand with the boilerplate then please feel free to submit an issue and/or pull request 🙂

Again to note, this is example can appear as over-architectured for what it is - but it is an example only. If you liked my work, don’t forget to ⭐ star the repo to show your support.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published