You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 26, 2023. It is now read-only.
Lightweight navigation library for Compose for Desktop
4
+
Karavel is a very simple and lightweight navigation library for Compose for Desktop. It creates a stack of composables and let you navigate poping and pushing on this stack.
5
5
6
-
## Install
7
-
8
-
1. Add it in your root build.gradle at the end of repositories:
9
-
```kotlin
10
-
repositories {
11
-
// ...
12
-
mavenCentral()
13
-
}
14
-
```
15
-
16
-
2. Add the dependency
6
+
## Install
7
+
Add the dependency on you `build.gradle.kts` file
17
8
```kotlin
18
9
dependencies {
19
10
// ...
@@ -38,19 +29,16 @@ class MainPage : Page() {
38
29
```
39
30
40
31
```kotlin
41
-
importandroidx.compose.desktop.Window
42
-
importandroidx.compose.material.MaterialTheme
43
-
importio.appoutlet.karavel.Karavel
44
-
importio.appoutlet.ui.page.MainPage
32
+
funmain() = application {
33
+
Window(onCloseRequest = ::exitApplication) {
45
34
46
-
funmain() =Window {
35
+
// 3. Create karavel instance passing the main page as argument
36
+
val karavel =Karavel(MainPage())
47
37
48
-
// 3. Create karavel instance passing the main page as argument
0 commit comments