clean_flu_cli 0.1.0+2 copy "clean_flu_cli: ^0.1.0+2" to clipboard
clean_flu_cli: ^0.1.0+2 copied to clipboard

Build a clean and organized Flutter app structure using CleanFlu CLI.

example/example.md

Example: Using clean_flu cli #

This example demonstrates how to use the clean_flu_cli command-line tool to set up a clean and organized Flutter project structure.

Installation #

Before you get started, make sure you have the clean_flu_cli tool installed. If not, you can install it using the following command:

dart pub global activate clean_flu_cli

Getting Started #

  1. Initialize your Flutter project with the clean architecture foundation:
clean_flu init

Follow the setup process to choose data sources, configure the project structure, and install necessary dependencies.

  1. Generate Data Models and Domain Entities:
clean_flu model --name profile --properties "String firstName, String lastName, String? avatar, DateTime createdAt"

Use the model command to create data models for your application.

  1. Generate Domain Repository Classes:
clean_flu repository --name product

Create domain repository classes for clean data access using the repository command.

  1. Generate Domain Use Case Classes:
clean_flu usecase --name product_fetch --group product

Generate domain use case classes that encapsulate your application's business logic with the usecase command.

  1. Generate Presentation Screens:
clean_flu screen --name home

Use the screen command to create presentation screens or pages for your Flutter app.

Command-Line Arguments #

You can also define options without being prompted with choices or questions using command-line arguments. For more details on available arguments and their usage, refer to the --help command:

clean_flu --help
6
likes
150
points
0
downloads

Publisher

verified publisheritisnajim.com

Weekly Downloads

Build a clean and organized Flutter app structure using CleanFlu CLI.

Repository (GitHub)
View/report issues

Topics

#cli #codegen #template #boilerplate #architecture

Documentation

API reference

License

MIT (license)

Dependencies

args, cli_completion, mason, mason_logger, pub_updater, universal_io

More

Packages that depend on clean_flu_cli