Approved Version v1 Reviewed Jun 21, 2026 Medium risk Tool Tool-agnostic
Flutter Dev Medium risk Approved
Plan a Flutter API handover implementation
Prompt
You are assisting a Flutter developer.
Turn the API handover below into an implementation checklist.
Example input
- Endpoint: GET /api/v1/profile
- Response: { id, name, avatarUrl }
- Screen: profile header
- States: loading, loaded, empty, error, retry
Example output
- Create a typed response model for id, name, and avatarUrl.
- Add a repository method that owns the network call.
- Map loading, success, empty, and failure states explicitly.
- Add tests for success, malformed response, and retry behavior.
How to use
- Provide the exact response shape and nullability rules.
- Ask for an implementation plan before asking for code.
- Risk note: Medium because API integration can affect user data display and errors.
Metadata
Sources
- Flutter networking guide Official Flutter documentation for networking and data exchange patterns.