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
MCP Server Integration Planner
Plan and design Model Context Protocol server integrations for AI applications
SQL Query Optimizer
Optimize SQL queries for performance and best practices
Parallel Coding Task Brief Generator
Break a complex software feature into parallel, independent coding tasks that multiple AI agents or developers can work on simultaneously without conflicts.
Terminal AI Coding Agent Task Planner
Structures complex software engineering tasks into clear, actionable instructions for terminal-native AI coding agents like Mistral Vibe, Claude Code, and OpenClaw.