Compose desktop navigation library

Last update: Mar 8, 2022

Navipose

Compose desktop navigation library

Features

Now navipose supports basic screen navigation between few screens

Examples

At first you should create something like simple graph

//Each screen inside graph should implement IScreen interface
sealed class Screens: IScreen {
    object Main : Screens()
    object SubScreen : Screens()
}

Than create navigator inside your composable function

//Specify start screen
Navigator(Screens.Main) {
  //Add screens to navigation graph
  addScreen(Screens.Main) { MainScreen(this) }
  addScreen(Screens.SubScreen) { SubScreen(this)}
}

And your composable functions should be like that

@Composable
fun MainScreen(navigator: INavigator) {
  //On Navigate to second screen on click
  Button(onClick = { navigator.navigate(Screens.SubScreen) }) {
    Text("Hello, go to subScreen")
  }
}

@Composable
fun SubScreen(navigator: INavigator) {
  //Navigate back
  Button(onClick = { navigator.goBack() }) {
    Text("Go back")
  }
}

Future

Future features

  • Maven central or jitpack repository
  • Stub screen on wrong navigation
  • Navigation arguments
  • Complete basic navigation flow
  • Back results
  • Controller support
  • Utilities functions for lifecycle/navigation
  • Nested/Parallel navigation support (now it's possible, but was not planned)

GitHub

https://github.com/LikeAMonkeys/navipose
You might also like...

⌨️ A tool that gives you a massive head start when building Compose Desktop apps. It saves you from time-consuming setup and configuration

⌨️ A tool that gives you a massive head start when building Compose Desktop apps. It saves you from time-consuming setup and configuration

💻 create-compose-app A tool that gives you a massive head start when building Compose based apps. It saves you from time-consuming setup and configur

Aug 12, 2022

Welcome Fruit Ninja 🥝 on Jetpack Compose Desktop 🚀, using Canvas API 🎨

Welcome Fruit Ninja 🥝  on Jetpack Compose Desktop 🚀, using Canvas API 🎨

Compose-Fruit-Ninja 🥝 Welcome Fruit Ninja on Jetpack Compose Desktop 🚀 , using Canvas API 🎨 Featured on jetc-dev How to Run From gradle tab from ri

Dec 17, 2021

Alien invasion 👾 gane is back! this time specially on Jetpack Compose Desktop 🚀, using Canvas API 🎨

Alien invasion 👾 gane is back! this time specially on Jetpack Compose Desktop 🚀, using Canvas API 🎨

Compose Space-Invaders 👾 Alien invasion 👾 is back! this time specially on Jetpack Compose Desktop 🚀 , using Canvas API 🎨 Featured on Compose Diges

Aug 6, 2022

💻 A Compose Desktop project template with MVVM, Dagger, Decompose, tests, and more...

💻 A Compose Desktop project template with MVVM, Dagger, Decompose, tests, and more...

compose-desktop-template A compose desktop project template with MVVM, Dagger, Decompose and more ✨ Demo What's included? Architecture (MVVM) with And

Aug 6, 2022

A simple Snake application to demonstrate the use of Compose for Desktop platform with Kotlin

A simple Snake application to demonstrate the use of Compose for Desktop platform with Kotlin

Snake App using Compose for Desktop A simple Snake desktop application to demonstrate the use of Compose UI toolkit for Desktop platform with Kotlin.

Jun 19, 2022

🔖 A Quotes Application built to Demonstrate the Compose for Desktop UI

🔖 A Quotes Application built to Demonstrate the Compose for Desktop UI

🔖 JetQuotes A Quotes Application built to Demonstrate the use of Jetpack Compose for building declarative UI in Desktop. Made with love ❤️ by Spikeys

Jun 6, 2022

⌨️ A tool that gives you a massive head start when building Compose Desktop apps. It saves you from time-consuming setup and configuration

⌨️ A tool that gives you a massive head start when building Compose Desktop apps. It saves you from time-consuming setup and configuration

💻 create-compose-app A tool that gives you a massive head start when building Compose based apps. It saves you from time-consuming setup and configur

Aug 12, 2022

A Sudoku game for Android & Desktop written with Jetpack Compose Multiplatform

A Sudoku game for Android & Desktop written with Jetpack Compose Multiplatform

🚀 Compose Arcade A sample Kotlin Multiplatform Compose Sudoku app for Android & Desktop. Most code is shared between Android & Desktop using Kotlin M

May 27, 2022

🎮 An attempt to create Super Mario Bros using Compose for Desktop

🎮 An attempt to create Super Mario Bros using Compose for Desktop

🎮 compose-mario An attempt to create Super Mario Bros using Compose for Desktop 🏗️ Under Active Development THIS PROJECT IS UNDER ACTIVE DEVELOPMENT

Jun 3, 2022
Snake-compose-for-desktop - Snake Game - implemented using Compose for Desktop
Snake-compose-for-desktop - Snake Game - implemented using Compose for Desktop

A Snake game, built with Compose for Desktop snake-compose-for-desktop is my imp

Feb 17, 2022
A desktop code editor app using Jetpack Compose for Desktop and IntelliJ Platform
A desktop code editor app using Jetpack Compose for Desktop and IntelliJ Platform

Compose Code Editor A desktop code editor app using Jetpack Compose for Desktop and IntelliJ Platform. Project Structure The code is contained in the

Jul 18, 2022
💻 A cross-platform desktop application to identify libraries used inside an android application. Made possible by Compose Desktop ⚡
💻 A cross-platform desktop application to identify libraries used inside an android application. Made possible by Compose Desktop ⚡

?? stackzy A desktop app to analyse APK. Built using Compose desktop ✨ Demo Watch demo ??️ Usage Show usage ?? Install Platform Download Status Linux

Aug 3, 2022
Compose desktop navigation library

Navipose Compose desktop navigation library Features Now navipose supports basic screen navigation between few screens Examples At first you should cr

Mar 8, 2022
Compose-navigation - Set of utils to help with integrating Jetpack Compose and Jetpack's Navigation

Jetpack Compose Navigation Set of utils to help with integrating Jetpack Compose

Apr 5, 2022
A library that enables Safe Navigation for you Composable destinations when using Jetpack Compose Navigation

A library that enables Safe Navigation for you Composable destinations when using Jetpack Compose Navigation

Jul 15, 2022
Jetpack Compose Boids | Flocking Insect 🐜. bird or Fish simulation using Jetpack Compose Desktop 🚀, using Canvas API 🎨
Jetpack Compose Boids | Flocking Insect 🐜. bird or Fish simulation using Jetpack Compose Desktop 🚀, using Canvas API 🎨

?? ?? ?? Compose flocking Ants(boids) ?? ?? ?? Jetpack compose Boids | Flocking Insect. bird or Fish simulation using Jetpack Compose Desktop ?? , usi

Feb 21, 2022
A library that adds useful features for Compose Desktop apps

Desktopose This is a set of utilities and components meant to help with developing desktop apps that use Compose for Desktop library. It contains the

Jun 6, 2022
Navigation-Compose - A sample to showcase Kotlin, MVVM, Hilt, Coroutines, StateFlow, Jetpack compose

Navigation-Compose A sample to showcase Kotlin, MVVM, Hilt, Coroutines, StateFlo

Jul 13, 2022
A Simple Blog App using Jetpack Compose, Flow, Navigation Compose, Room and Firebase
A Simple Blog App using Jetpack Compose, Flow, Navigation Compose, Room and Firebase

BlogCompose A Simple Blog App using Jetpack Compose, Flow, Navigation Compose, Room and Firebase Instructions Download your Firebase configuration fil

Apr 8, 2022