小编sey*_*ali的帖子

Flutter溢出定位按钮不可点击

我有一个像这样定位的小部件的堆栈小部件:

Stack(
        overflow: Overflow.visible,
        children: [
          Container(
            width: 150,
            height: 150,
          ),
          Positioned(
            child: FloatingActionButton(
              child: Icon(Icons.add),
              onPressed: () {
                print('FAB tapped!');
              },
              backgroundColor: Colors.blueGrey,
            ),
            right: 0,
            left: 0,
            bottom: -26,
          ),
        ],
      ),
Run Code Online (Sandbox Code Playgroud)

放置在容器外面的那部分晶圆厂是不可点击的,有什么解决办法?这是一个截图:

在此处输入图片说明

dart flutter

5
推荐指数
3
解决办法
2784
查看次数

标签 统计

dart ×1

flutter ×1