Flutter + MVVM + Provider + Navigator 2.0

This flutter demo have following things -

Design pattern - MVVM

State Management - Provider

Navigation - Navigator 2.0

API Calling - Dio

About MVVM Architecture

MVVM is one of the architectural patterns which enhances separation of concerns, it allows separating the user interface logic from the business (or the back-end) logic. Its target (with other MVC patterns goal) is to achieve the following principle “Keeping UI code simple and free of app logic in order to make it easier to manage”.

MVVM is an abbreviation of Model View Veiw model where your presentaion layer will be divided into three packages -


Model : Model represents the data and business logic of the app.


View : The view role in this pattern is to observe (or subscribe to) a ViewModel observable to get data in order to update UI elements accordingly.


View Model : ViewModel interacts with model and also prepares observable(s) that can be observed by a View.

This repo contains the following branches

  • master: Contains MVVM architecture with provider, network connection check, API manager, Drawer and app version check.

Used Libraries

  • dio - For Network Calls
  • connectivity_plus - To check network connection
  • provider - for state management
  • package_info_plus - for querying information about an application package.

Home Page Drawer

MIT License

Copyright (c) 2022 Amit Rawal

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE