Pablo
12/28/2024, 3:24 PMMenuBar
? if for example, I wanna display a "about" or a "help" dialog in my desktop app, that logic should be executed from a viewmodel
... but MenuBar
is always visible and shared by the entire application, visible on every screen, and each one of the screens of my app has their own viewmodel
, which is exclusive of the screen, without having references to the MenuBar
... does that mean that I need two viewmodels
coexisting at the same moment? one for the window of the app, managing the menubar events and other for the current visible screen? this seems to be very confussing.Chrimaeon
12/28/2024, 4:00 PMPablo
12/28/2024, 8:33 PMChrimaeon
12/28/2024, 8:36 PMPablo
12/28/2024, 8:36 PMPablo
12/28/2024, 8:37 PMPablo
12/28/2024, 8:37 PMChrimaeon
12/28/2024, 8:38 PMChrimaeon
12/28/2024, 8:39 PMin the app state you should only have the “root” navigation that can be triggered from the platform specific screens. i.e. menu bar on desktop or bottom tab navigation in android. the screens internal navigation should stay in a nested nav graph in the screen itself.is still valid. app state has a root nav contoller. your screens have their own controller
Pablo
12/28/2024, 8:40 PMPablo
12/28/2024, 8:40 PMPablo
12/28/2024, 8:40 PMChrimaeon
12/28/2024, 8:41 PMChrimaeon
12/28/2024, 8:44 PMPablo
12/28/2024, 9:04 PMCould not find Navigator with class "class androidx.navigation.compose.ComposeNavigator". You must call NavController.addNavigator() for each navigation type.
Pablo
12/28/2024, 9:05 PMChrimaeon
12/28/2024, 9:47 PMPablo
12/28/2024, 9:55 PM