Loading...
Loading...
Clean Architecture, Data Models, Tech Stack, Error Handling & Platform Channels
npx skill4agent add dhruvanbhalara/skills architecturedomainpackage:flutterPresentation -> Domain <- DataDataSourcesRepositoriesfeatureA/blocfeatureA/modelsfeatureA/viewscorecore/views/widgetsUI Event → BLoC (emit Loading) → Repository → DataSource (API/SDK)
↓
Response → Repository (map to Domain Entity) → BLoC (emit Success/Error) → UIsealed class(String name, int age)if (value case final v?)if (value != null)finalinterfacebasesealedEither<Failure, T>Result<T>switchMethodChannelEventChannelplatform/static const channel = MethodChannel('com.app.feature/method')MethodChannelMissingPluginExceptiondefaultTargetPlatformdart:ffiPlatform.isAndroidPlatform.isIOSdart:iokIsWebpackage:flutter/foundation.dartSwitch.adaptiveSlider.adaptive