Skip to content

ntvsp/flutter_bloc_boilerplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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:

  • Splash
  • Login
  • Home
  • Routing
  • Theme
  • Dio
  • Database
  • Validation
  • Logging
  • Multiple Theme and Dark Theme
  • 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

Languages

  • Dart 90.6%
  • Swift 4.6%
  • Ruby 3.4%
  • Kotlin 1.4%