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
Regex Pattern Generator and Explainer
Generates precise regular expressions for any text matching task and explains each component in plain English, with test cases and language-specific implementation code.
AI Agent Task Brief Writer
Creates a structured, unambiguous task brief to hand off to an AI coding or desktop agent like Claude Code, Codex, or Manus — minimizing back-and-forth and maximizing first-attempt success.
Bug Report Generator
Generate detailed bug reports for developers
Code Documentation Generator
Generate comprehensive documentation for codebases