简体   繁体   English

如何配置 Flutter 的 showModalBottomSheet 打开/关闭动画?

[英]How do I configure Flutter's showModalBottomSheet opening/closing animation?

To me current linear animation doesn't look smooth so I would like to add easing.对我来说,当前的线性动画看起来并不流畅,所以我想添加缓动。 How can I do that?我怎样才能做到这一点?

您可以使用具有属性animationduration showMaterialModalBottomSheet

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

相关问题 如何在 showModalBottomSheet 中创建内部导航? - How can I create inner navigation in showModalBottomSheet? 如何通过导航抽屉的打开和关闭来更改按钮图像 - How do I change my button image with navigation drawer opening and closing "带有动画的打开和关闭活动在后按时不起作用但在打开时起作用" - Opening and closing activity with animation not working on back pressed but working for opening 如何使动画的效果在活动之间持续存在? - How do I get an animation's effect to persist between activities? 如何通过动画设置Android View的透明度? - How do I set an Android View's transparency with animation? 如何在不完全打开浏览器的情况下在 flutter 中实现 web 浏览 - How do i achieve web browsing in flutter without completely opening browser 如何使用 flutter 的 .then() 方法捕获错误? - How do I catch errors using flutter's .then() method? 如何在 Flutter 中隐藏 Android 的底部操作栏? - How do I hide Android's bottom action bar in Flutter? flutter showModalBottomSheet 在单击后退按钮时不弹出 - flutter showModalBottomSheet not pop when back button clicked 我如何创建这个动画? - How do i create this animation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM