“溢出”已被弃用,不应使用。改用clipBehavior

我需要一个使用剪辑行为的溢出小部件,但我不知道该怎么做?

 child: Row(
    children: [
        Stack(
            children: [],
        overflow: Overflow.clip,
                                  ) 

回答

clipBehavior像这样使用:

Stack(
  clipBehavior: Clip.none, // This is what you need. 
  children: [],
)


以上是“溢出”已被弃用,不应使用。改用clipBehavior的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>