Skip to content
Back to skills

Build Reliable Flutter Apps

ASecurity

Build reliable Flutter apps avoiding state loss, widget rebuild traps, and async pitfalls.

  • 37 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 19, 2026
ai-agentsgoperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --skill build-reliable-flutter-apps --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Reliable Flutter Apps?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build Reliable Flutter Apps
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-build-reliable-flutter-apps/badge)](https://www.skillsdirectory.com/skills/rondoflow-build-reliable-flutter-apps)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build-reliable-flutter-apps
description: "Build reliable Flutter apps avoiding state loss, widget rebuild traps, and async pitfalls."
category: "Community"
author: community
version: "1.0.1"
icon: puzzle
---

## 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 otherwise
- Key missing on list items — reordering breaks state, always use keys
- FutureBuilder rebuilds on parent rebuild — triggers future again, cache the Future
- BuildContext after async gap — context may be invalid, check `mounted` first
- `const` constructor — prevents rebuilds, use for static widgets
- `StatefulWidget` recreated — key change or parent rebuild creates new state
- GlobalKey expensive — don't use just to access state, pass callbacks instead
- `dispose` incomplete — cancel timers, subscriptions, controllers
- Navigator.pop with result — returns Future, don't ignore errors
- ScrollController not disposed — memory leak
- Image caching — use `cached_network_image`, default doesn't persist
- PlatformException not caught — platform channel calls can throw

Files in this skill

  • SKILL.md1.4 KB
  • manifest.json305 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.