https://github.com/icapps/flutter-icapps-generator
A generator to setup a new screen in seconds instead of minutes
https://github.com/icapps/flutter-icapps-generator
Last synced: 8 months ago
JSON representation
A generator to setup a new screen in seconds instead of minutes
- Host: GitHub
- URL: https://github.com/icapps/flutter-icapps-generator
- Owner: icapps
- License: mit
- Created: 2019-09-18T08:51:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-13T12:06:32.000Z (over 2 years ago)
- Last Synced: 2024-11-30T14:18:01.391Z (over 1 year ago)
- Language: Dart
- Size: 496 KB
- Stars: 4
- Watchers: 11
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter icapps generator
A dart package to automaticly generate new code when creating a new screen.
This package should be used in combination with the [icapps template](https://github.com/icapps/flutter-template)
[](https://pub.dartlang.org/packages/icapps_generator)
This repo contains an example how to use this package.
Packages used:
- provider
- kiwi
- icapps_generator
## Setup
### Add dependency to pubspec
[](https://pub.dartlang.org/packages/icapps_generator)
```
dev-dependencies:
icapps_generator:
```
### Run package with Flutter
```
flutter packages pub run icapps_generator your_screen_name
```
### Run package with Dart
```
pub run icapps_generator your_screen_name
```
### Run with extra options
Do not add your newly generated screen to the MainNavigatorWidget
```
--no-nav
```
Do not regenerate the kiwi dependency tree
```
--no-kiwi
```
### Result
Code will be generated:
- Screen
- ViewModel
- Add @Register.factory to the injector file
- Add code to make sure you can navigate to your new screen in the MainNavigatorWidget
- Generate the dependecy tree
### Working on mac?
add this to you .bash_profile
```
fluttergenerator(){
flutter packages pub run icapps_generator $1
}
```
now you can use the icapps generator with a single command.
```
fluttergenerator your_screen_name
```