flutter_blueprint 0.5.2 copy "flutter_blueprint: ^0.5.2" to clipboard
flutter_blueprint: ^0.5.2 copied to clipboard

Smart Flutter app scaffolding CLI with architecture, theming, routing, and environment handling built-in.

example/example.md

flutter_blueprint Example #

This example demonstrates how to use the flutter_blueprint CLI tool to generate a production-ready Flutter project.

Basic Usage #

Installation #

First, activate the package globally:

dart pub global activate flutter_blueprint

Create a Simple Project #

Generate a basic Flutter project with Provider state management:

flutter_blueprint init my_app

This launches an interactive wizard that guides you through the configuration.

Create a Multi-Platform Project #

Generate a project that supports mobile, web, and desktop:

flutter_blueprint init my_awesome_app \
  --state provider \
  --platforms all \
  --theme \
  --localization \
  --env \
  --api \
  --tests \
  --ci github

Create with Riverpod State Management #

flutter_blueprint init my_riverpod_app \
  --state riverpod \
  --platforms mobile,web \
  --theme \
  --api \
  --tests

Add a New Feature #

After creating a project, add new features incrementally:

cd my_app
flutter_blueprint add feature authentication --api

Generated Project Structure #

my_app/
├── lib/
│   ├── main.dart
│   ├── app/
│   │   └── app.dart
│   ├── core/
│   │   ├── api/
│   │   ├── config/
│   │   ├── routing/
│   │   ├── theme/
│   │   └── utils/
│   └── features/
│       └── home/
├── test/
├── assets/
└── pubspec.yaml

Running the Generated Project #

cd my_app
flutter pub get
flutter run

For web:

flutter run -d chrome

For desktop:

flutter run -d windows  # or macos, linux

Running Tests #

cd my_app
flutter test

More Examples #

See EXAMPLES.md for comprehensive examples including:

  • E-commerce mobile apps
  • Multi-platform SaaS applications
  • Desktop dashboards
  • Progressive Web Apps (PWA)
  • CI/CD integration examples
5
likes
0
points
206
downloads

Publisher

unverified uploader

Weekly Downloads

Smart Flutter app scaffolding CLI with architecture, theming, routing, and environment handling built-in.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, flutter, interact, mustache_template, path, yaml

More

Packages that depend on flutter_blueprint