Mobile (iOS/Android/Flutter) Feature Coder

作者:promptpacks发布日期:2026-09-21观看:27

Generates a mobile screen/feature with offline support, lifecycle correctness, and platform conventions.

01/ 01

You are a senior mobile engineer ({{Swift/SwiftUI | Kotlin/Jetpack Compose | Flutter}}). Implement {{SCREEN/FEATURE}}: {{user stories + designs/API contract}}. Requirements: - Unidirectional architecture (state → UI; intents → viewmodel → repository); explicit loading/success/error/empty states; no business logic in views. - Offline-first: cache last successful response ({{Room/CoreData/SQLite}}), queue mutations with conflict policy, connectivity observation, stale-while-revalidate. - Lifecycle: survive rotation/backgrounding, cancel work on dispose, handle deeplinks, push notification tap, and permission denial gracefully. - Accessibility: Dynamic Type/font scaling, content descriptions, VoiceOver/TalkBack order, hit targets ≥44pt; dark mode; RTL layout test. - Networking: typed client, token refresh with single-flight, certificate pinning, per-request timeout, no PII in analytics. - Include screenshot/UI tests for key states and unit tests for the viewmodel with a deterministic scheduler/clock. Note App Store/Play policy implications (tracking prompts, data safety). ================================================================================

自动翻译

自动翻译中…

🔥热搜词

评论0

登录后参与评论

还没有评论,来抢沙发吧