/flutter_mvvm_boilerplate

Primary LanguageDartApache License 2.0Apache-2.0

flutter_mvvm_boilerplate

This project is a sample for flutter MVVM pattern.

Features


Introduction

  • The get_it plugin was used with the provider pattern base.
  • The dependency between VEIW and VEIWMODEL is N:1 relationship.
  • Contains login samples using REST API for state management. Simulator Screen Shot - iPhone 12 Pro Max

Architecture

architecture


Getting Started

  1. Clone this repository
    git clone https://github.com/madsys11/flutter_mvvm_boilerplate.git
  1. Rename folder flutter_mvm_boilerplate to your project name.
  2. You can use the rename plugin to change projectName and packageName.
    flutter pub global activate rename
    flutter pub global run rename --appname "projectName"
    flutter pub global run rename --bundleId com.xxx.packageName
  1. Open the project. (e.g., vscode)
  2. Use the command+shift+h(on mac) command to replace all flutter_mvvm_boilerplate to projectName.
  3. Get packages in a Flutter project.
    flutter pub get