如何在堆栈中添加可滚动小部件?
Widget build(BuildContext context) {
final children = [
if (!widget.closeManually) _renderOverlay(),
_renderButton(),
];
return Stack(
alignment: Alignment.bottomRight,
fit: StackFit.expand,
overflow: Overflow.visible,
children: children,
);
}
_renderOverlay()和_renderButton()是定位的小部件。