sergiocasero / flutter_architecture_template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_architecture_template

In this project you could see an example with clean architecture using flutter. Please, take in account, this is not the Bible, is just my approach, my vision of how it should be. I'm opening to discuss with everyone about this :)

The architecture

In this architecture we have 3 main folders

  • Domain: Which includes everything regarding the domain logic of the app, it must also contain the domain models
  • Data: In this folder, we will include every class that should manage (or be managed) by the repository pattern
  • View: Widgets and ViewModels, that's all, so the presentation logic must be here

page

Software patterns

  • MVVM (Model View View Model)
  • Repository

Libraries used

  • stacked
  • http
  • sqflite
  • get_it

Dependency injection

Ok... well, there is no dependency injection, we have a Service Locator, which is provided by get_it

Navigation

WIP

Disclaimer

I use this architecture because I think it is the best for developing robust applications, I encourage you to launch a pull request but with using Provider, Bloc, GetX or whatever, it will be helpful!! :)

About


Languages

Language:Dart 71.0%Language:Ruby 16.5%Language:HTML 6.6%Language:Swift 5.2%Language:Kotlin 0.6%Language:Objective-C 0.2%