从屏幕移动数据 - Jetpack Compose

问题描述 投票:0回答:1

我不知道为什么,它不起作用。 我想将数据从 TextField 中的 Screen2 移动到 Screen1 没有错误,应用程序在手机上运行良好,但不显示数据。\

主要
https://github.com/fornakter/Navigation-With-Data/blob/main/app/src/main/java/com/nav/controllerwithdata/MainActivity.kt

屏幕1
https://github.com/fornakter/Navigation-With-Data/blob/main/app/src/main/java/com/nav/controllerwithdata/screens/Screen1.kt

屏幕2
https://github.com/fornakter/Navigation-With-Data/blob/main/app/src/main/java/com/nav/controllerwithdata/screens/Screen2.kt

kotlin android-jetpack-compose screen
1个回答
0
投票

在屏幕 2 中,在

currentBackStabEntry
上设置数据,然后导航,在屏幕 2 上将其从
previousbackStabEntry

中拉出
© www.soinside.com 2019 - 2024. All rights reserved.