flutter_architect library
Production-grade Flutter Architecture CLI & toolkit.
Classes
- ApiGenerator
- Generates an end-to-end API integration stack (datasource, response model, repository, usecase, bloc).
- ArchitectureValidationResult
- Aggregated result of project architecture validation.
- ArchitectureValidator
- Validates Clean Architecture structural boundaries, conventions, and configuration.
- BaseGenerator
- Base contract for all code and structure generators.
- BlocGenerator
- Generates modern BLoC files (Bloc, Event, State).
- BottomSheetGenerator
- Generates reusable Material 3 modal bottom sheets.
- ConfigResolver
- Resolves configuration taking into account CLI overrides, project file, and defaults.
- CoreGenerator
- Generates the shared core infrastructure for Clean Architecture.
- CubitGenerator
- Generates Cubit files (Cubit, State).
- DatasourceGenerator
- Generates Remote and Local data sources.
- DialogGenerator
- Generates reusable Material 3 dialog components.
- DoctorCheck
- Result of a single doctor diagnostic check.
- DoctorRunner
- Runs diagnostic health checks on the environment and current Flutter project.
- ExitCodes
- Standard CLI exit codes based on BSD sysexits conventions.
- FeatureGenerator
- Generates a complete Clean Architecture feature bundle.
- FileGenerationResult
- Details of a single generated file.
- FileManager
- Centralized file operations manager with safe collision handling and dry-run support.
- FirebaseGenerator
- Generates Firebase setup service and guides developer on configuration.
- FlavorsGenerator
- Generates build flavor setup for development, staging, and production.
- FlutterArchitectCommandRunner
- Top-level command runner for flutter_architect CLI.
- LocalizationGenerator
- Generates Flutter localization structure (l10n.yaml, English and Spanish ARB files).
- Logger
- Professional CLI logger supporting ANSI coloring, no-color mode, and clean icons.
- ModelGenerator
- Generates strongly typed data models with JSON serialization.
- NamingUtils
- Robust naming conversion utility for Dart identifiers and file names.
- PageGenerator
- Generates Material 3 Flutter pages.
- PlatformUtils
- Platform and process utilities ensuring safe cross-platform execution.
- ProjectConfig
- Configuration settings for flutter_architect in a target Flutter project.
- Prompts
- Interactive CLI prompting helper with fallback for non-interactive environments.
- PubspecUtils
-
Utilities for locating, inspecting, and manipulating
pubspec.yaml. - RepositoryGenerator
- Generates repository contract in domain and implementation in data.
- TemplateEngine
- Fast, dependency-free template renderer supporting variables and conditionals.
- TemplateRegistry
- Embedded template repository providing production-ready Dart code templates.
- ThemeGenerator
- Generates or updates the Material 3 theme layer.
- UsecaseGenerator
- Generates domain use cases.
- ValidationIssue
- An individual issue found during architecture validation.
- WidgetGenerator
- Generates reusable Flutter UI widgets.
Enums
- ArchitectureType
- Supported architecture types.
- CheckStatus
- Status of an individual diagnostic check.
- DependencyInjectionType
- Supported dependency injection mechanisms.
- EnvironmentType
- Supported environment strategies.
- FileConflictAction
- GenerationStatus
- Status of a file generation attempt.
- LocalizationType
- Supported localization types.
- LocalStorageType
- Supported local storage solutions.
- NetworkingType
- Supported networking clients.
- StateManagementType
- Supported state management libraries.
- ThemeType
- Supported theme systems.
- ValidationSeverity
- Severity of an architecture validation finding.