xflutter_cli 2.1.1 copy "xflutter_cli: ^2.1.1" to clipboard
xflutter_cli: ^2.1.1 copied to clipboard

command line tool helps you to generates and/or modifies your Flutter Components.

xflutter_cli is a command line tool helps you to generates and/or modifies your Flutter Components.

Install: #

activate dart cli to run it globally:

dart pub global activate xflutter_cli

Notes: #

  • make sure your Flutter version is up to 3.0.0.
  • if you are using (macOS) don't forget to update your .zshrc file with:

1- export PATH="$PATH:$HOME/{your flutter path}/flutter/bin"

2- export PATH="$PATH":"$HOME/.pub-cache/bin"

Usage: xflutter_cli <command> #

Available commands:

  • create: Create new Flutter App and Initialize it.
  • generate: Generates and/or modifies files based on a schematic.
  • make: generates new module depending on xflutter-cli commands.
  • init: Initialize your project with necessary packages and reusable files.
  • help: browse all avialable commands, options and flags.

generate options: #

  • (screen): generate screen with state management, responsive and routing configuration.

  • (form): generate form inside your screen widgets with inputs such as (email, password) with state management.

  • (model): generate @freezed models from json file.

  • (crud): generate (RestClient and repository) for specific data model.

  • (isar): generate local-database layer for specific data model.

  • (paging): make a viewModel extends (PaginationViewModel) after generate CRUD.

generate flags: #

  • (responsive): used with (generate screen), give you the ability to wrap tablet and mobile layouts in your screen (tablet screen will not generated).

  • (tablet): used with (generate screen), give you the ability to wrap tablet and mobile layouts in your screen (generate mobile and tablet screens).

  • (di): used with (generate screen), state management with dependency injection to manage variables between screen and children widgets.

  • (theme): used with (generate screen), initialize your global app theme.

  • (router): used with (generate screen), give you ability to manage navigation between screens, initialize (auto_route) package and wrap the generated screen in app routes.

Github example #

2
likes
90
pub points
0%
popularity

Publisher

verified publisherxflutter-cli.com

command line tool helps you to generates and/or modifies your Flutter Components.

Homepage

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

args, async, basic_utils, collection, dio, file, freezed_annotation, glob, http, interact, json_annotation, lints, path, pub_updater, pubspec, string_extensions, tuple, yaml, yaml_edit

More

Packages that depend on xflutter_cli