Create Flutter Application
Create a new Flutter application and initialize it directly.XFlutter-CLI generate all reusable components such as (widgets, resources, base viewModel and injectable), configurations such as Native splash screen and Launcher icons, assets such as localization and images after create app.xflutter_cli create
Result:
CLI provides two options to create the Flutter application Layer-Based Architecture and Feature-Based ArchitectureLayer-Based Architecture:
- xflutter_cli_test_application
- android
- assets
- images
- localization
- svgs
- ios
- lib
- data
- di
- environments
- events
- extensions
- router
- storage
- ui
- utilities
- viewmodels
Feature-Based Architecture:
- xflutter_cli_modules_application
- android
- assets
- images
- localization
- svgs
- ios
- lib
- common
- data
- di
- environments
- router
- ui
- viewmodels
- core
- events
- extensions
- storage
- utilities
Usage:
Name | Type | Description | Allowed Values | Format |
---|---|---|---|---|
name | option | application name | - | snack case |
package | option | application package name | - | snack case |
architecture | option | specify application architecture | layers, modules | |
default-values | flag | initialize with default values like colors | - |