“溢出”已被弃用,不应使用。改用clipBehavior
我需要一个使用剪辑行为的溢出小部件,但我不知道该怎么做?
child: Row(
children: [
Stack(
children: [],
overflow: Overflow.clip,
)
回答
clipBehavior像这样使用:
Stack(
clipBehavior: Clip.none, // This is what you need.
children: [],
)