如何将值传递给Jet Pack中的先前屏幕组成ModalBottomSheet
我有一个JetPack组成的屏幕。当我单击按钮时,将打开ModalBottomSheet。当我单击ModalBottomSheet中的一个按钮时,我想折叠底部表并将一些值传递给上一个屏幕。我该怎么做?
I have a jetpack compose screen. When I click on the button the modalBottomSheet is opened. When I click on a button in the modalBottomSheet I want to collapse the bottom sheet and pass some values to previous screen. How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
单击按钮时,请使用您调用/将值传递到的lambda。
组合数据流下来,事件流动。这些事件通常以lambdas的形式。
Utilize a lambda that you call/pass the values into when the button is clicked.
With Compose data flows down and events flow up. And those events are usually in the form of lambdas.