Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

������ flutter starter architecture (mvvm + hive)

my custom starter project for flutter apps.

i was looking for a simple way to build flutter app in a scalable and clear way way to operate. so i’ve spent a little to search for how to implement an mvvm architecture in a proper and efficient way for scalable apps. this is the first result of my research. i use it for two projects now.
this one provide an mvvm architecture powered by get_it and provider.
this work was mainly inspired by the work of filledstacks.

�� overview

i have made:

  • a helpers folder where i have put all the utilities of the project such as constant values, dart enumerate, extensions, theming, and other general utilities.
  • a models folder where i have put all the data’s classes representation.
  • a services folder where i have put all folders relative to data’s storing and fetching base on local storage, firebase, or api.
  • a viewmodels folder where i put all the viewmodels related files. in the easiest way, i call viewmodel a bridge between the models, services, and views. their job is to handle the business logic of the view they are related to in order to make the views part safe from anything non-relevant to ui.
  • a views folder where are stored the ui part of the application. each view/page/screen of the application is put here in differents folders. those folders contain the base file of the view and a widgets folder where are stored the widgets which are used only on this view. the global widgets are located in the widgets folder.

i have also added a base class for viewmodels here. all the next viewmodels you’ll write should inherit from the baseviewmodel class. there is also a baseview widget here to mix the access easily to the base viewmodel proper to each class.

at the root of the app, you will see the locator.dart file where i registered an instance of each service and viewmodel in order to use them efficiently in the whole app. you will also find the routes.dart where the named routes of the app are stored in the approuter class.

on this branch i have added some utilities on to handle local storage with hive.

�� future

i will create new branches to add more base project with various kind of scalable architecture.

�� plugins inside

the repository contains based packages for provider, firebase, firebase_auth, cloud_firestore, hive, and get_it

�� author(s)

junior medehou twitter follow

getting started with flutter

a few resources to get you started if this is your first flutter project:

for help getting started with flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full api reference.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.