What problem does it solve?
This Skill addresses the challenge of building cross-platform UIs for Android, iOS, Desktop, and Web using Compose Multiplatform and Jetpack Compose, covering state management, navigation, theming, performance, and platform-specific UI considerations.
Core Features & Use Cases
- State Management: Implement state management using ViewModels and Compose state, with support for Single State Object and Event Sink Pattern.
- Navigation: Utilize Type-Safe Navigation for efficient routing and Dialog/Bottom Sheet Navigation patterns.
- Composable Design: Leverage Slot-Based APIs and Modifier Ordering best practices for better composability.
- Platform-Specific UI: Address platform-specific UI concerns with
expect/actual for Platform Composables.
- Performance: Employ Stable Types for Skippable Recomposition, Lazy Lists, and Derived State to optimize performance.
- Theming: Integrate Material 3 Dynamic Theming for a responsive and adaptive UI experience.
- Anti-Patterns: Guide users to avoid common pitfalls like
mutableStateOf misuse and excessive recomposition.
Quick Start
Run the 'compose-multiplatform-patterns' skill to explore patterns for shared UI development across different platforms.