Flutter Mobile App Code Generator
Generate production-ready Flutter code for mobile app screens and features — with proper widget structure, state management, and platform conventions for iOS and Android.
Content
Generate production-ready Flutter code for the following: Feature/Screen: {{feature_name}} App Type: {{app_type}} State Management: {{state_management}} (Riverpod / Bloc / Provider / GetX / setState) Design System: {{design_system}} (Material 3 / Cupertino / Custom) Backend/Data: {{backend}} (Firebase / REST API / Supabase / Local / None) Target Platforms: {{platforms}} (iOS / Android / Both / Web) Flutter Version: {{flutter_version}} Generate the following code: **1. Screen/Widget File** (`lib/screens/{{feature_name}}_screen.dart` or `lib/widgets/`) ```dart // Complete, runnable Flutter code // - Proper StatelessWidget or StatefulWidget // - Correct widget tree structure // - Responsive layout with LayoutBuilder or MediaQuery // - Platform-aware styling (iOS vs Android) // - Proper const constructors where applicable // - Error and loading states handled ``` **2. State Management Layer** (using {{state_management}}) ```dart // Model/Provider/Bloc/Controller file // - Clean separation of concerns // - Async operations with proper error handling // - State immutability where applicable ``` **3. Data Model** ```dart // Dart data class // - copyWith method // - fromJson/toJson for {{backend}} // - Equatable or == override ``` **4. Navigation Integration** ```dart // How to navigate to/from this screen // - GoRouter or Navigator 2.0 route definition // - Parameter passing ``` **5. Required Dependencies** (pubspec.yaml additions) ```yaml dependencies: # List required packages with version constraints ``` **6. Testing Stub** ```dart // Widget test skeleton // - Golden test setup // - Key interaction tests ``` **Code Quality Notes:** - Follow Flutter/Dart linting rules (flutter_lints) - No hardcoded strings (use const or l10n) - Accessibility: Semantics widgets where needed - Performance: avoid unnecessary rebuilds
Related Prompts
Agentic Workflow Orchestrator
Design and coordinate multi-agent AI workflows that delegate tasks to specialized AI assistants
Code Documentation Generator
Generate comprehensive documentation for codebases
AI Code Reviewer
Get comprehensive code review with AI-powered suggestions for improvements
API Documentation Generator
Generate comprehensive API documentation including endpoints, parameters, responses, and examples.