在模态底页上方显示 SnackBar [英] Show a SnackBar Above Modal Bottom Sheet
本文介绍了在模态底页上方显示 SnackBar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试在模态底页上方显示 SnackBar
,但它不起作用.知道如何实现吗?
I tried to display a SnackBar
above my Modal Bottom Sheet, but it doesn't work. Any idea how to achieve that?
P.S.:将 SnackBar 行为设置为浮动不起作用.它仍然出现在模态底页下方
P.S.: Setting the SnackBar Behavior to Floating doesnt work. It still appears below the modal bottom sheet
谢谢
推荐答案
只需用 Scaffold
await showModalBottomSheet(
context: context,
builder: (builder) => Scaffold(
body: YourModalContentWidget()
)
);
这篇关于在模态底页上方显示 SnackBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文