This project is a sample for flutter MVVM pattern.
- 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.
- Clone this repository
git clone https://github.com/madsys11/flutter_mvvm_boilerplate.git
- Rename folder
flutter_mvm_boilerplate
to your project name. - 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
- Open the project. (e.g., vscode)
- Use the
command+shift+h
(on mac) command to replace allflutter_mvvm_boilerplate
toprojectName
. - Get packages in a Flutter project.
flutter pub get