π¦ ClawHub
Flutter
by @ivangdavila
Build performant cross-platform apps with Flutter widgets, state management, and platform integration.
TERMINAL
clawhub install flutterπ About This Skill
name: Flutter slug: flutter version: 1.0.1 description: Build reliable Flutter apps avoiding state loss, widget rebuild traps, and async pitfalls. metadata: {"clawdbot":{"emoji":"π¦","requires":{"bins":["flutter"]},"os":["linux","darwin","win32"]}}
Quick Reference
| Topic | File |
|-------|------|
| setState, state loss, keys | state.md |
| build method, context, GlobalKey | widgets.md |
| FutureBuilder, dispose, mounted | async.md |
| Context after pop, deep linking | navigation.md |
| const, rebuilds, performance | performance.md |
| Platform channels, null safety | platform.md |
Critical Rules
setState after dispose β check mounted before calling, crashes otherwisemounted firstconst constructor β prevents rebuilds, use for static widgetsStatefulWidget recreated β key change or parent rebuild creates new statedispose incomplete β cancel timers, subscriptions, controllerscached_network_image, default doesn't persist