icapps_generator 0.3.0

Dart

Dart tool to automaticly generate new code when creating a new screen.

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

pub package

This repo contains an example how to use this package.

Packages used:

  • provider
  • kiwi
  • icapps_generator

Setup #

Add dependency to pubspec #

pub package

dev-dependencies:
  icapps_generator: <latest-version>

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
3
likes
90
pub points
32%
popularity

Publisher

icapps.com

Dart tool to automaticly generate new code when creating a new screen.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

path, yaml

More

Packages that depend on icapps_generator