Visual studio code extension to generate MVC and MV patterns template code using providers
The create MV command or menu will add a MV.
If you give parameter for class name as home
, the extension will create a directory structure like this
--root
|-- android
|-- ios
|-- lib
|-- components
|-- models
|-- home
|-- home_model.dart
|-- views
|-- home
|-- components
|-- layouts
|-- home_view.dart
|-- main.dart
|-- test
|-- pubspec.yaml
It will also add the following dependencies to the pubspec.yaml
file
- provider: ^4.0.4
The create MVC command or menu will add a MVC.
If you give parameter for class name as home
, the extension will create a directory structure like this
--root
|-- android
|-- ios
|-- lib
|-- components
|-- models
|-- home
|-- home_model.dart
|-- views
|-- home
|-- components
|-- layouts
|-- home_view.dart
|-- controllers
|-- home
|-- home_controller.dart
|-- main.dart
|-- test
|-- pubspec.yaml
It will also add the following dependencies to the pubspec.yaml
file
- provider: ^4.0.4
The create model command or menu will add a Model.
If you give parameter for class name as home
, the extension will create a directory structure like this
--root
|-- android
|-- ios
|-- lib
|-- models
|-- home
|-- home_model.dart
|-- main.dart
|-- test
|-- pubspec.yaml
It will also add the following dependencies to the pubspec.yaml
file
- provider: ^4.0.4
The create view command or menu will add a View.
If you give parameter for class name as home
, the extension will create a directory structure like this
--root
|-- android
|-- ios
|-- lib
|-- components
|-- views
|-- home
|-- components
|-- layouts
|-- home_view.dart
|-- main.dart
|-- test
|-- pubspec.yaml
It will also add the following dependencies to the pubspec.yaml
file
- provider: ^4.0.4
The create controller command or menu will add a Controller.
If you give parameter for class name as home
, the extension will create a directory structure like this
--root
|-- android
|-- ios
|-- lib
|-- controllers
|-- home
|-- home_controller.dart
|-- main.dart
|-- test
|-- pubspec.yaml
It will also add the following dependencies to the pubspec.yaml
file
- provider: ^4.0.4