Flutter Development

Flutter Development

Teaches an AI agent to build cross-platform Flutter apps with widgets, Provider or BLoC state management, navigation and API integration.

Skill files5 files

references/

templates/

SKILL.md101 lines
1
---
2
name: flutter-development
3
description: >
4
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers
5
widgets, state management with Provider/BLoC, navigation, API integration, and
6
material design.
7
---
8
9
# Flutter Development
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Create high-performance, visually stunning mobile applications using Flutter with Dart language. Master widget composition, state management patterns, navigation, and API integration.
22
23
## When to Use
24
25
- Building iOS and Android apps with native performance
26
- Designing custom UIs with Flutter's widget system
27
- Implementing complex animations and visual effects
28
- Rapid app development with hot reload
29
- Creating consistent UX across platforms
30
31
## Quick Start
32
33
Minimal working example:
34
35
```dart
36
// pubspec.yaml
37
name: my_flutter_app
38
version: 1.0.0
39
40
dependencies:
41
flutter:
42
sdk: flutter
43
provider: ^6.0.0
44
http: ^1.1.0
45
go_router: ^12.0.0
46
47
// main.dart with GoRouter navigation
48
import 'package:flutter/material.dart';
49
import 'package:go_router/go_router.dart';
50
51
void main() {
52
runApp(const MyApp());
53
}
54
55
class MyApp extends StatelessWidget {
56
const MyApp({Key? key}) : super(key: key);
57
58
@override
59
Widget build(BuildContext context) {
60
return MaterialApp.router(
61
// ... (see reference guides for full implementation)
62
```
63
64
## Reference Guides
65
66
Detailed implementations in the `references/` directory:
67
68
| Guide | Contents |
69
|---|---|
70
| [Project Structure & Navigation](references/project-structure-navigation.md) | Project Structure & Navigation |
71
| [State Management with Provider](references/state-management-with-provider.md) | State Management with Provider |
72
| [Screens with Provider Integration](references/screens-with-provider-integration.md) | Screens with Provider Integration |
73
74
## Best Practices
75
76
### ✅ DO
77
78
- Use widgets for every UI element
79
- Implement proper state management
80
- Use const constructors where possible
81
- Dispose resources in state lifecycle
82
- Test on multiple device sizes
83
- Use meaningful widget names
84
- Implement error handling
85
- Use responsive design patterns
86
- Test on both iOS and Android
87
- Document custom widgets
88
89
### ❌ DON'T
90
91
- Build entire screens in build() method
92
- Use setState for complex state logic
93
- Make network calls in build()
94
- Ignore platform differences
95
- Create overly nested widget trees
96
- Hardcode strings
97
- Ignore performance warnings
98
- Skip testing
99
- Forget to handle edge cases
100
- Deploy without thorough testing
101

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…