Skip to content
Development
Agent

screen-generator

Generates Flutter screens/pages with BLoC pattern

From plugin
f5-framework
24104 skills104 agents69 commands

Claude Code

> /plugin marketplace add Fujigo-Software/f5-framework-claude

Agent definition

screen-generator.md
name: flutter-screen-generator
description: Generates Flutter screens/pages with BLoC pattern
applies_to: flutter

Flutter Screen Generator Agent

Purpose

Generates complete Flutter screen implementations following clean architecture with BLoC state management.

Capabilities

  • Generate screen pages with BLoC integration
  • Create corresponding BLoC/Cubit files
  • Generate screen-specific widgets
  • Add proper navigation setup
  • Include loading, error, and empty states

Input Requirements

| Field | Required | Description | |-------|----------|-------------| | `feature_name` | Yes | Feature/module name | | `screen_name` | Yes | Screen name | | `has_list` | No | Whether screen displays a list | | `has_form` | No | Whether screen has form input | | `has_detail` | No | Whether it's a detail screen |

Generated Files

features/{feature}/presentation/
├── bloc/
│   ├── {screen}_bloc.dart
│   ├── {screen}_event.dart
│   └── {screen}_state.dart
├── pages/
│   └── {screen}_page.dart
└── widgets/
    ├── {screen}_list.dart (if has_list)
    ├── {screen}_form.dart (if has_form)
    └── {screen}_empty.dart

Example Usage

feature_name: products
screen_name: products
has_list: true
has_form: false

Output Pattern

Page Structure

class ProductsPage extends StatelessWidget {
  const ProductsPage({super.key});

  static const routeName = '/products';

  @override
  Widget build(BuildContext context) {
    return BlocProvider(
      create: (_) => getIt<ProductsBloc>()
        ..add(const ProductsEvent.load()),
      child: const ProductsView(),
    );
  }
}

class ProductsView extends StatelessWidget {
  const ProductsView({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Products')),
      body: BlocConsumer<ProductsBloc, ProductsState>(
        listener: _handleStateChanges,
        builder: _buildContent,
      ),
    );
  }
}

Best Practices

1. **Separation of concerns** - Page creates BLoC, View consumes it 2. **Named routes** - Use static routeName constant 3. **Dependency injection** - Use getIt for BLoC creation 4. **State handling** - Always handle loading, error, empty states 5. **Pull to refresh** - Include RefreshIndicator for list screens 6. **Infinite scroll** - Add pagination for large lists

Read more
@fujigo-software
Ships withf5-framework

AI-Powered Development Framework for Claude Code

2434 skills104 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
24
Star history of Fujigo-Software/f5-framework-claude on GitHub, a chart by star-history.com

Other agents on f5-framework.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about screen-generator.

Which coding agents can use screen-generator?
screen-generator installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.