首页 > 解决方案 > 颤动中安全区域内的 InteractiveViewer

问题描述

限制interactiveViewer 在屏幕的SafeArea 内拖放控件的最佳方法是什么?在我的代码中,我将 EdgeInsets.all 指定为 double.infinity。有没有办法获得 SafeArea EdgeInsets,它可能会有所帮助?问题是,我的控件正在离开屏幕。谢谢你的帮助

SafeArea(
      child: InteractiveViewer(
        boundaryMargin: EdgeInsets.all(double.infinity),

标签: flutterdartflutter-layout

解决方案


推荐阅读