flutter-expert
/flutter-expert
Expert in Flutter SDK, Dart, widgets, state management, and cross-platform mobile development. Use when the user mentions mobile, Dart, cross platform, UI, or state management, or when the task involves Flutter Architecture, Widget Fundamentals, State Management Approaches, or Lifecycle Methods.
- Author
- personamanagmentlayer ↗
- Repository
- pcl ↗
- Licence
- Apache-2.0
- Last repository change
- 10.09.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 26
No signals detected. Repository changed on 10.09.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Expert in Flutter SDK, Dart, widgets, state management, and cross-platform mobile development. Use when the user mentions mobile, Dart, cross platform, UI, or state management, or when the task involves Flutter Architecture, Widget Fundamentals, State Management Approaches, or Lifecycle Methods.
Original author description
Expert in Flutter SDK, Dart, widgets, state management, and cross-platform mobile development. Use when the user mentions mobile, Dart, cross platform, UI, or state management, or when the task involves Flutter Architecture, Widget Fundamentals, State Management Approaches, or Lifecycle Methods.
How it works
- Core Concepts
- Best Practices
- Anti-Patterns
- Reference Documentation
- Resources
SKILL.md preview
---
name: flutter-expert
description: >-
Expert in Flutter SDK, Dart, widgets, state management, and cross-platform mobile
development. Use when the user mentions mobile, Dart, cross platform, UI, or state
management, or when the task involves Flutter Architecture, Widget Fundamentals, State
Management Approaches, or Lifecycle Methods.
allowed-tools:
- Read
- Write
- Edit
- Bash
- Grep
- Glob
version: 1.1.0
tags: [mobile, flutter, dart, cross-platform, ui, state-management]
category: frameworks
phase: 6
author: PCL Stdlib Team
---
# Flutter Expert
You are an expert in Flutter SDK, Dart programming, and cross-platform mobile development.
## Core Concepts
### Flutter Architecture
- **Widget Tree**: Everything is a widget (Stateless, Stateful, Inherited)
- **Rendering Pipeline**: Widget → Element → RenderObject
- **Declarative UI**: UI is a function of state
- **Hot Reload**: Fast development iteration
- **Platform Channels**: Native code integration (MethodChannel, EventChannel)
- **Engine**: Skia graphics engine for consistent rendering
### Widget Fundamentals
- **StatelessWidget**: Immutable, depends only on configuration
- **StatefulWidget**: Mutable state that can change over time
- **InheritedWidget**: Propagate data down the widget tree
- **Key**: Preserve state when widget tree changes (ValueKey, ObjectKey, GlobalKey)
### State Management Approaches
- **setState**: Simple local state
- **InheritedWidget/InheritedNotifier**: Framework primitives
- **Provider**: Recommended by Flutter team, built on InheritedWidget
- **Bloc/Cubit**: Business logic separation, event-driven
- **Riverpod**: Provider evolution, compile-safe, testable
- **GetX**: Reactive state, dependency injection, routing
- **Redux**: Unidirectional data flow
### Lifecycle Methods (StatefulWidget)
1. `createState()` - Create mutable state
2. `initState()` - Initialize state, subscribe to streams
3. `didChangeDependencies()` - When InheritedWidget changes
4. `build()` - Render UI
5. `didUpdateWidget()` - Parent rebuilds with new configuration
6. `setState()` - Trigger rebuild
7. `deactivate()` - Widget removed from tree
8. `dispose()` - Clean up resources, controllers, subscriptions
## Best Practices
### Performance Optimization
- Use `const` constructors for immutable widgets
- Avoid rebuilding large widget subtrees (use `const`, `RepaintBoundary`)
- Use `ListView.builder` for long lists instead of `ListView`
- Implement `shouldRebuild` in custom widgets
- Use `ResizeImage` or `CachedNetworkImage` for images
- Profile with DevTools, look for jank in timeline
- Minimize `build()` method complexity
- Use `Selector` instead of `Consumer` when only part of state needed
### Code Organization
- Feature-first folder structure over layer-first
- Separate business logic from UI (use Bloc, Provider, etc.)
- Use dependency injection (Provider, GetIt, Riverpod)
- Create reusable custom widgets
- Use extensions for utility functions
- Keep widgets small and focused (SRP)
### UI/UX Best Practices
- Follow Material Design or Cupertino guidelines
- Use `MediaQuery` for responsive layouts
- Implement proper error handling and loading states
- Use `Hero` animations for transitions
- Provide haptic feedback where appropriate
- Support both light and dark themes
- Test on multiple screen sizes and orientations
### Security
- Never hardcode API keys (use environment variables)
- Use HTTPS for all network requests
- Implement certificate pinning for sensitive apps
- Validate all user input
- Use secure storage for sensitive data (flutter_secure_storage)
- Obfuscate code for production builds
## Anti-Patterns
### Avoid These Common Mistakes
- **setState in initState**: Use `addPostFrameCallback` or `Future.microtask`
- **Not disposing controllers**: Always dispose TextEditingController, AnimationController
- **Using GlobalKey everywhere**: Use only when necessary (form validation, scrolling)
- **Nested setState calls**: Can cause multiple rebuilds
- **Large build methods**: Extract to separate widgets
- **Synchronous operations in build**: Use FutureBuilder or StreamBuilder
- **Not handling loading/error states**: Always show feedback to user
- **Using `print` in production**: Use proper logging (logger package)
- **Ignoring context.mounted**: Check before async operations in widgets
- **Overusing packages**: Understand what each package does
### Bad State Management
```dart
// DON'T: Passing callbacks through many layers
class Parent extends StatefulWidget {
@override
State<Parent> createState() => _ParentState();
}
class _ParentState extends State<Parent> {
int count = 0;
@override
Widget build(BuildContext context) {
return Child(
count: count,
onIncrement: () => setState(() => count++),
);
}
}
// DO: Use Provider or other state management
class Parent extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (_) => Counter(),
child: Child(),
);
}
}
```
## Reference Documentation
Detailed material lives alongside this skill and is read on demand:
- [Code Examples](references/EXAMPLES.md) — Basic App Structure, Provider State Management, Bloc Pattern, Platform Channels (Native Integration), Firebase Integration, Testing
## Resources
### Documentation
- [Flutter Docs](https://docs.flutter.dev/)
- [Dart Language Tour](https://dart.dev/guides/language/language-tour)
- [Flutter Widget Catalog](https://docs.flutter.dev/ui/widgets)
- [Flutter Cookbook](https://docs.flutter.dev/cookbook)
- [API Reference](https://api.flutter.dev/)
### State Management
- [Provider Documentation](https://pub.dev/packages/provider)
- [Bloc Library](https://bloclibrary.dev/)
- [Riverpod](https://riverpod.dev/)
- [GetX](https://pub.dev/packages/get)
### Tools
- [Flutter DevTools](https://docs.flutter.dev/tools/devtools)
- [Very Good CLI](https://pub.dev/packages/very_good_cli)
- [FlutterFire CLI](https://firebase.flutter.dev/docs/cli)
- [Dart Code (VS Code)](https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code)
### Testing & CI/CD
- [Testing Flutter Apps](https://docs.flutter.dev/testing)
- [Integration Testing](https://docs.flutter.dev/testing/integration-tests)
- [Codemagic CI/CD](https://codemagic.io/)
- [GitHub Actions for Flutter](https://github.com/subosito/flutter-action)
### Packages
- [pub.dev](https://pub.dev/) - Official package repository
- [flutter_launcher_icons](https://pub.dev/packages/flutter_launcher_icons)
- [flutter_native_splash](https://pub.dev/packages/flutter_native_splash)
- [dio](https://pub.dev/packages/dio) - HTTP client
- [freezed](https://pub.dev/packages/freezed) - Code generation for immutable classes
- [go_router](https://pub.dev/packages/go_router) - Declarative routing
### Community
- [Flutter Community](https://flutter.dev/community)
- [r/FlutterDev](https://reddit.com/r/FlutterDev)
- [Flutter Discord](https://discord.gg/flutter)
Files in this package (2)
- SKILL.md 7 KB
- references/EXAMPLES.md 7 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · personamanagmentlayer/pcl | 100 | Apache-2.0 |
| Jeffallan/claude-skills | 100 | MIT |
| rmyndharis/antigravity-skills | 100 | MIT |
| agentic-swe/agentic-swe | 100 | MIT |
| nasac0x/code-orchestrator | 100 | MIT |
| aarvion-ai/stackwise-skills | 100 | MIT |
| bagisto/opensource-ecommerce-mobile-app | 90 | MIT |
Database snapshot: 13.11.2026 · package version fa2bf08a9041 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100dart-expert
Expert-level Dart, Flutter, mobile development, and cross-platform apps. Use when the user mentions Flutter, mobile, cross platform, or widgets, or when the task involves Dart Language or Flutter Framework. - 100flutter
Flutter cross-platform development with Dart. Widgets, state management (Riverpod, BLoC), navigation, platform channels, and production patterns. USE WHEN: user mentions "Flutter", "Dart", "flutter widget", "Riverpod", "BLoC", "flutter build", "pubspec.yaml" DO NOT USE FOR:… - 100developing-with-flutter
Flutter SDK for cross-platform development targeting iOS, Android, and Web. Use for widget architecture, state management, platform channels, and multi-platform deployment. - 100oma-mobile
Mobile specialist for Flutter, React Native, and cross-platform mobile development. Use for mobile app, Flutter, Dart, iOS, Android, Riverpod, and widget work. - 95agent-flutter-developer
Specialist subagent: Flutter/Dart cross-platform development, Riverpod state management, and platform channels specialist. Use when building Flutter apps, implementing state management, or working with native platform features. Trigger phrases: Flutter, Dart, Riverpod, Bloc,… - 100mobiai-flutter
Use when working on a Flutter or Dart project — building, testing, debugging, understanding state management and project structure.