简体   繁体   English

是否有任何类似的小部件或 function 从 flutter 的右侧从屏幕上弹出的“showModelBottomSheet”?

[英]Is there any similar widget or function like 'showModelBottomSheet' that pop on screen from right hand side in flutter?

I used showModelBottomSheet a lot that pops on the screen from the bottom with a nice animation.我经常使用showModelBottomSheet ,它从底部弹出一个漂亮的 animation。

Now I want to use something similar that pops on the screen from the right-hand side instead of the bottom.现在我想使用类似的东西,从右侧而不是底部弹出屏幕。

It helps me a lot for UI purposes when the user rotates the screen to landscape, then I want to show a pop up from right in the flutter.当用户将屏幕旋转为横向时,它对 UI 的帮助很大,然后我想在 flutter 中从右侧显示一个弹出窗口。

I tried to find and also dig deeper inside showModelBottomSheet function but no luck.我试图找到并深入挖掘showModelBottomSheet function 但没有运气。

Try using drawer on right side it may solve your problem answered in link below How to place Drawer widget on the right尝试在右侧使用抽屉它可以解决您在下面的链接中回答的问题如何将抽屉小部件放在右侧

I don't think that exists either in Material or Cupertino design language, so no, unfortunately.我认为这在 Material 或 Cupertino 设计语言中都不存在,所以不,很遗憾。 However, you could build that yourself pretty easily with a Stack widget.但是,您可以使用Stack小部件轻松地自己构建它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM