package Ġcom . ale xj lock wood . be es and bom bs Ċ Ċ import Ġandroidx . activity . On Back Pressed Dispatcher Ċ import Ġandroidx . compose . animation . Cross fade Ċ import Ġandroidx . compose . foundation . is System In Dark Theme Ċ import Ġandroidx . compose . foundation . layout . fill MaxSize Ċ import Ġandroidx . compose . foundation . lazy . remember Lazy List State Ċ import Ġandroidx . compose . material . Material Theme Ċ import Ġandroidx . compose . material . Surface Ċ import Ġandroidx . compose . material . dark Colors Ċ import Ġandroidx . compose . material . light Colors Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . runtime . save able . remember Save able Ċ import Ġandroidx . compose . ui . Modifier Ċ Ċ private Ġval ĠDark Color Palette Ġ= Ġdark Colors () Ċ private Ġval ĠLight Color Palette Ġ= Ġlight Colors () Ċ Ċ @ Composable Ċ fun ĠBe es And B om bs App ( back Dispatcher : ĠOn Back Pressed Dispatcher ) Ġ{ ĊĠĠĠ Ġval Ġnavigator : ĠNavigator < Demo Screen > Ġ= Ġremember Save able ( sa ver Ġ= ĠNavigator . sa ver ( back Dispatcher )) Ġ{ ĊĠĠĠĠĠĠĠ ĠNavigator ( Demo Screen . Demo List , Ġback Dispatcher ) ĊĠĠĠ Ġ} ĊĠĠĠ ĠMaterial Theme ( colors Ġ= Ġif Ġ( is System In Dark Theme ()) ĠDark Color Palette Ġelse ĠLight Color Palette ) Ġ{ ĊĠĠĠĠĠĠĠ ĠSurface ( modifier Ġ= ĠModifier . fill MaxSize ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġdemo List State Ġ= Ġremember Lazy List State () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCross fade ( navigator . current ) Ġ{ Ġdestination Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġwhen Ġ( destination ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠDemo Screen . Demo List Ġ-> ĠDemo List ( demo List State ) Ġ{ Ġtitle Ġ-> Ġnavigator . navigate ( Demo Screen . Demo Details ( title )) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠDemo Screen . Demo Details Ġ-> ĠDemo Details ( destination ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ