flutter_setup 1.0.1 copy "flutter_setup: ^1.0.1" to clipboard
flutter_setup: ^1.0.1 copied to clipboard

A reusable Flutter project scaffolding CLI tool.

flutter_setup #

A reusable, production-ready Flutter project scaffolding and code generation CLI tool.

pub package License: MIT

flutter_setup eliminates the hours required to start a production Flutter app by scaffolding a complete project with modern architecture, network layers, theme modes, dependency injection, and state management in seconds.


๐Ÿ“– Complete Developer & Integration Guide #

Looking for full API references, architecture blueprints, platform permission setup, and troubleshooting tables?
๐Ÿ‘‰ Read the Complete Developer & Integration Guide (DOCUMENTATION.md)


โšก Quick Start #

1. Install globally #

dart pub global activate flutter_setup

2. Scaffold a new Flutter app #

flutter_setup create my_awesome_app

3. Run your application #

cd my_awesome_app
flutter run

โœจ Key Features #

  • Instant Production Setup: Scaffolds a complete Flutter project with Dio, Riverpod, GoRouter, Freezed, SharedPreferences, FlutterSecureStorage, FlutterLocalNotifications, FirebaseMessaging, and PermissionHandler.
  • Feature & Component Generators: Add new feature modules or sub-components (screen, model, repository, service) into existing Flutter apps on demand.
  • Automated Asset Registration: Automatically scans assets/ (preserving binary files), registers asset paths in pubspec.yaml, and generates a type-safe lib/core/constants/assets.dart class.
  • Centralized Dependency Injection: Organizes cross-cutting services into lib/injection/providers.dart using Riverpod.
  • Safety Rollback & Conflict Resolution: Automatically rolls back project creation on partial failure and interactively prompts on destination folder collisions.
  • Multiple Templates: Includes production-ready default template and lightweight minimal template.

๐Ÿ“ฆ Available CLI Commands #

Command Usage Description
create flutter_setup create [name] [-t template] [-f] Scaffolds a new Flutter project (interactive if name omitted)
templates flutter_setup templates Lists all available starter templates
info flutter_setup info <template_name> Shows details for a specific template
feature flutter_setup feature <name> [-p path] Generates a full feature module skeleton inside an existing project
screen flutter_setup screen <name> --feature=<name> Generates a single screen file in an existing feature
model flutter_setup model <name> --feature=<name> Generates a single model file in an existing feature
repository flutter_setup repository <name> --feature=<name> Generates a single repository file in an existing feature
service flutter_setup service <name> --feature=<name> Generates a single service file in an existing feature
version flutter_setup version Shows CLI version
help flutter_setup help Prints usage and command options

๐Ÿ—๏ธ Architecture (default template) #

lib/
โ”œโ”€โ”€ app/                  # Application shell configuration (router, theme, root App widget)
โ”œโ”€โ”€ core/                 # Infrastructure services (network, storage, notifications, permissions)
โ”œโ”€โ”€ injection/            # Centralized DI container (lib/injection/providers.dart)
โ”œโ”€โ”€ features/             # Feature domain modules
โ”‚   โ””โ”€โ”€ example/
โ”‚       โ”œโ”€โ”€ models/       # Data models & Freezed schemas
โ”‚       โ”œโ”€โ”€ providers/    # Riverpod state notifiers
โ”‚       โ”œโ”€โ”€ repositories/ # Data mapping & error handling
โ”‚       โ”œโ”€โ”€ screens/      # UI screens
โ”‚       โ”œโ”€โ”€ services/     # Direct API client communication
โ”‚       โ””โ”€โ”€ widgets/      # Feature-specific UI components
โ””โ”€โ”€ main.dart             # Minimal entry point initializing services & running App

๐Ÿงช Running Tests #

dart test

๐Ÿ“„ License #

This project is licensed under the MIT License - see the LICENSE file for details.

1
likes
0
points
260
downloads

Publisher

verified publisherplushvie.in

Weekly Downloads

A reusable Flutter project scaffolding CLI tool.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, path, yaml

More

Packages that depend on flutter_setup