Loading...
Loading...
Use when a Flutter app crashes at startup with a LateInitializationError or when widgets read a field before async init (database open, service wiring) completes. Add an init gate that renders a splash until initialized, an error screen with retry on failure, and guards against double-init.
npx skill4agent add hoangsoft90/ai_skills flutter-startup-gatelateinit()initializedLateInitializationError: Field 'repo' has not been initializedlateinit()logcatE/flutterapp.dartinitializingerror != nullinitializedrepo_initStartedinit()retryInit()init()flutter analyzeflutter testLateInitializationErrorflutter-device-smoke-testAppState.init()lateMaterialAppapp.repo...build()