Getting Started
CLI
Use the Flutty CLI to scaffold and maintain FluttyUI Flutter projects.
Install from pub.dev:
dart pub global activate fluttyCommand format
flutty <command> [arguments]Global options
| Option | Type | Description |
|---|---|---|
-h, --help | bool | Show help output |
-v, --version | bool | Show CLI version |
Commands
init
flutty init <project_name> [options]| Option | Type | Default | Notes |
|---|---|---|---|
-t, --template | String | provider | Allowed: provider, getx, riverpod |
-d, --description | String | A FluttyUI project. | Written to generated files |
-f, --force | bool | false | Allows creation in non-empty directory |
Creates:
-
pubspec.yaml -
lib/main.dart -
.gitignore -
README.md -
.flutty/template.json -
Project name must match
^[a-z][a-z0-9_]*$. -
Without
--force, command fails if target directory is non-empty.
Template names:
provider->provider-startergetx->getx-starterriverpod->riverpod-starter
doctor
flutty doctorChecks:
pubspec.yamlexists.pubspec.yamlcontainsflutter:(warn if missing).lib/main.dartexists (warn if missing).
upgrade
flutty upgrade- Requires
pubspec.yamlin current directory. - Applies pending schema migrations.
Option:
--dry-run: list pending migrations without writing files.