Relative Content

Tag Archive for androidflutterkotlinfrontendandroid-jetpack-compose

Is there any way to avoid recomposition in jetcpack compose

@Composable fun FlutterScreen(route: String) { AndroidFragment<SimpleFlutterFragment>( arguments = SimpleFlutterFragment.buildRoute(route) ) } NavHost(navController = navController, startDestination = “main”) { composable<Main> { MainScreen() } composable<Flutter> { FlutterScreen(it.toRoute()) } } I want to keep ui without recomposition/redraw while navigate back or display FlutterScreen again @Composable fun MainScreen(vm: NavigationVM = viewModel()) { val navUiState by vm.navState.collectAsState() val state = […]