flutter_blueprint library

Classes

AnalysisReport
Report containing all found issues.
ArchitectureConfig
Architecture configuration for shared blueprints
AutoRefactoringTool
Handles automatic refactoring of Flutter projects.
BaseCommand
Base class for commands that provides common functionality.
BlueprintConfig
Configuration produced by the CLI and persisted to blueprint.yaml.
BlueprintManifest
Wrapper for persisted blueprint metadata stored alongside generated apps.
BlueprintManifestStore
Handles reading and writing blueprint manifests on disk.
BundleComponent
Represents a component of the bundle
BundleItem
Represents an individual item in the bundle
BundleSizeAnalyzer
Analyzes Flutter app bundle size and provides optimization suggestions
BundleSizeReport
Represents the complete bundle size analysis report
CodeQualityAnalyzer
Analyzes Flutter/Dart code for quality issues.
CodeStyleConfig
Code style configuration for shared blueprints
Command
Base interface for all CLI commands.
CommandContext
Context provided to every command during execution.
CommandRegistry
Maps command names to their implementations and dispatches execution.
CommandResult
Result of a command execution.
ConfigInfo
Information about a saved configuration
ConfigRepository
Manages loading, saving, and sharing blueprint configurations
DependencyManager
Manages dependency versions by fetching latest versions from pub.dev.
DependencyUpdate
Represents a dependency update information.
Failure<T, E>
A failed result containing error.
GeneratedFile
A generated file with path and content.
GenerationResult
Generation result containing stats about what was created.
ITemplateRenderer
Interface for template renderers.
OptimizationSuggestion
Represents an optimization suggestion
PerformanceAlerts
Alert thresholds for performance issues
PerformanceAnalyzer
Analyzes and tracks performance metrics for Flutter applications
PerformanceConfig
Represents the performance configuration from blueprint.yaml
PerformanceMetric
Represents a performance metric measurement
PerformanceReport
Report containing performance analysis results
PerformanceSetupTemplate
Generates performance monitoring code for Flutter projects
PerformanceTracking
Represents which performance metrics should be tracked
ProjectGenerator
Orchestrates project generation using the new template abstraction layer.
ProjectPreview
Displays a visual preview of the project structure before generation.
ProjectStatistics
Statistics about the project to be generated.
QualityIssue
Represents a code quality issue found during analysis.
RefactoringChange
Represents a single change made during refactoring.
RefactoringConfig
Configuration for refactoring operations.
RefactoringResult
Result of a refactoring operation.
Result<T, E>
A discriminated union representing either a success T or failure E.
ServiceLocator
A minimal service locator for managing shared dependencies.
SharedBlueprintConfig
Represents a shared blueprint configuration that can be used across teams
SharedComponents
Library of shared template components.
SharedConfigDefaults
Default configuration values for shared blueprints
SimpleTemplateBundleAdapter
Adapts a legacy template function that takes no config argument.
Success<T, E>
A successful result containing value.
TemplateBundleAdapter
Adapts a legacy TemplateBundle builder function to an ITemplateRenderer.
TemplateContext
Context passed to template renderers containing all generation parameters.
TemplateLibrary
Factory for creating template bundles based on project template type.
TemplateRegistry
Registry for template renderers with factory lookup.
TemplateRegistryFactory
Factory that builds a pre-populated TemplateRegistry with all existing template bundles registered via adapters.
ValidationResult
Result of configuration validation

Enums

AnalyticsProvider
Supported analytics providers.
CIProvider
Supported CI/CD providers.
FeatureStructure
Feature structure options
IssueSeverity
Severity levels for issues.
IssueType
Types of code quality issues.
NamingConvention
Naming convention options
ProjectTemplate
Pre-built project templates for common use cases.
RefactoringType
Types of refactoring operations supported.
StateManagement
Supported state-management approaches.
SuggestionSeverity
Severity levels for optimization suggestions
TargetPlatform
Supported platform targets.

Exceptions / Errors

BlueprintException
Base exception class for all flutter_blueprint errors.
CommandError
Thrown when a CLI command fails.
ConfigurationError
Thrown when configuration is invalid or cannot be loaded.
FileOperationError
Thrown when file I/O operations fail.
ProjectGenerationError
Thrown when project generation fails.
RefactoringError
Thrown when a refactoring operation fails.
TemplateRenderError
Thrown when a template cannot be rendered.
ValidationError
Thrown when validation of input or configuration fails.