项目
在 GitHub 查看
adrielcafe/voyager
关于
🛸 面向 Compose Multiplatform 的实用导航库。
网站与应用开发可以做什么
- Supported platforms: Android, iOS, Desktop, Web.
- Linear navigation
- BottomSheet navigation
- Tab navigation like Youtube app
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- -3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Voyager: Compose on Warp Speed
A multiplatform navigation library built for, and seamlessly integrated with, Jetpack Compose.
Create scalable Single-Activity apps powered by a pragmatic API:
class HomeScreenModel : ScreenModel {
// ...
}
class HomeScreen : Screen {
@Composable
override fun Content() {
val screenModel = rememberScreenModel<HomeScreenModel>()
// ...
}
}
class SingleActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
Navigator(HomeScreen())
}
}
}
Turn on the Warp Drive and enjoy the voyage 🖖
Documentation
See the project website for documentation and APIs.
Features
- Supported platforms: Android, iOS, Desktop, Web.
- Linear navigation
- BottomSheet navigation
- Tab navigation like Youtube app
- Nested navigation (multiple stacks, parent navigation)
- ScreenModel (a.k.a ViewModel) integrated with Koin, Kodein, Hilt, Coroutines, RxJava, LiveData
- Android ViewModel integration (with Hilt support)
- Type-safe multi-module navigation
- State-aware Stack API
- Built-in transitions
- State restoration after Activity recreation
- Lifecycle callbacks
- Back press handling
- Deep linking support
Samples
| Stack API | Android ViewModel | ScreenModel | Basic nav. |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
| BottomSheet nav. | Tab nav. | Multi-module nav. | Nested nav. |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
探索相关项目
加载中…







