我有一个像这样定位的小部件的堆栈小部件:
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)
放置在容器外面的那部分晶圆厂是不可点击的,有什么解决办法?这是一个截图: