A command line app helps to generate a flutter project follows Clean architecture + Provider
I referred (get cli)https://pub.dev/packages/get_cli
to make this cli
// To install:
pub global activate hpf_cli
// To create a project:
// Note: you can use any name, ex: hpf create project:movie
hpf create project:movie
// To create a page:
// (Page have controller, state)
// Note: you can use any name, ex: hpf create page:login
hpf create page:home
or
hpf create -p home
// To create a screen:
// (Screen have controller, state)
// Note: you can use any name, ex: hpf create screen:login
hpf create screen:home
or
hpf create -sn home
// To create an use case:
// Note: you can use any name, ex: hpf create use_case:get_user_info
hpf create use_case:get_user_info
or
hpf create -uc get_user_info
// To create a repository:
// Note: you can use any name, ex: hpf create repo:user
hpf create repo:user
or
hpf create -rp user
Libraries
- samples/analysis_options
- command/args_mixin
- samples/base_controller
- samples/base_page
- samples/base_screen
- samples/base_state
- command/command
- command/command_list
- command/command_parent
- samples/controller
- functions/create/create_directory
- functions/create/create_main
- functions/create/create_single_file
- samples/di
- samples/error_dialog
- samples/error_entity
- samples/error_handler
- core/file_model
- functions/file/format
- core/generator
- samples/i_use_case
- functions/file/import_sort
- command/init/init
- command/init/init_cleanpattern
- command/install/install
- command/install/install_get
- core/internationalization
- extensions/list
- samples/loading_dialog
- core/locales.g
- common/util/logger/log_utils
- command/create/page
- samples/page
- functions/file/path
- command/create/project
- samples/provider_main
- common/pubspec/pubdev_utils
- common/pubspec/pubspec_utils
- command/create/repository
- samples/repository
- samples/repository_impl
- samples/routers
- samples/sample
- samples/screen
- command/create/screen
- common/shell/shell_utils
- samples/state
- core/structure
- samples/uninitialized_widget
- command/create/use_case
- samples/use_case
- common/pubspec/yaml_to.string