Skip to content

Commit

Permalink
Add change configuration support for navigation in sample app (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuLG-ik authored Mar 15, 2024
1 parent 481e8ee commit f71af05
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
Expand All @@ -57,8 +58,8 @@ fun App() {
val scope = rememberCoroutineScope()
var images by remember { mutableStateOf(listOf<ImageBitmap>()) }
val snackbarHostState = remember { SnackbarHostState() }
var showCamera by remember { mutableStateOf(false) }
var showGallery by remember { mutableStateOf(false) }
var showCamera by rememberSaveable { mutableStateOf(false) }
var showGallery by rememberSaveable { mutableStateOf(false) }

val singleImagePicker =
rememberImagePickerLauncher(
Expand Down

0 comments on commit f71af05

Please sign in to comment.