create_project_aro 0.0.8 copy "create_project_aro: ^0.0.8" to clipboard
create_project_aro: ^0.0.8 copied to clipboard

This package generates a professional directory structure for Flutter projects with a focus on clean architecture.

example/example.md

🚀 Example: How to use create_project_aro #

🧑‍đŸ’ģ Interactive Mode #

You can use the interactive mode simply by running:

dart run create_project_aro:create

If you don't provide any flags, you will be prompted in the terminal to select:

  • The state manager (BLoC, Provider, Riverpod)
  • The type of generation (Functional demo or Empty folders)

This example demonstrates how to use the create_project_aro package to generate a professional Flutter project structure with clean architecture and optional login demo.

âš™ī¸ Prerequisites #

  • â™Ŗī¸ Dart SDK >= 3.0.0
  • 💙 Flutter >= 3.10.0

đŸ› ī¸ Basic Usage (Flags Mode) #

đŸ“Ļ Install as a dev dependency #

It is recommended to add create_project_aro as a dev dependency:

dart pub add --dev create_project_aro

And in your pubspec.yaml:

dev_dependencies:
  create_project_aro: ^0.0.5

Generate the default folder structure using BLoC:

dart run create_project_aro:create --b

Generate the structure for Provider:

dart run create_project_aro:create --p

Generate the structure for Riverpod:

dart run create_project_aro:create --r

🔐 Generate Structure with Login Demo #

Add a functional login demo using your preferred state manager:

đŸŸĻ BLoC:

dart run create_project_aro:create --b --d

🟩 Provider:

dart run create_project_aro:create --p --d

đŸŸĒ Riverpod:

dart run create_project_aro:create --r --d

📄 Generate Structure with Empty Base Files #

Create the structure with empty base files for each state manager:

đŸŸĻ BLoC:

dart run create_project_aro:create --b --e

🟩 Provider:

dart run create_project_aro:create --p --e

đŸŸĒ Riverpod:

dart run create_project_aro:create --r --e

Depending on the state manager you choose, add the following dependencies to your pubspec.yaml:

đŸŸĻ For BLoC #

  • đŸ“Ļ flutter_bloc: ^9.0.0
  • đŸ“Ļ equatable: ^2.0.5
  • đŸ“Ļ meta: ^1.15.0

🟩 For Provider #

  • đŸ“Ļ provider: ^6.1.1

đŸŸĒ For Riverpod #

  • đŸ“Ļ flutter_riverpod: ^2.4.5
  • đŸ“Ļ riverpod_annotation: ^2.3.0

Dev dependencies:

  • đŸ› ī¸ riverpod_generator: ^2.3.5
  • đŸ› ī¸ build_runner: ^2.4.6

To generate files for Riverpod:

flutter pub run build_runner build

🔑 Login Demo Details #

  • 📝 Basic field validation (email and password)
  • 📧 Correct email: [email protected]
  • 🔒 Correct password: 123456
  • ✅ On successful login, redirects to a HomePage screen
  • 🏠 Home screen displays centered text: HomePage

â„šī¸ For more information, see the README.md.

Visit my website https://www.arosistemas.com.

25
likes
160
points
14
downloads

Publisher

verified publisherarosistemas.com

Weekly Downloads

This package generates a professional directory structure for Flutter projects with a focus on clean architecture.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on create_project_aro