'overflow' is deprecated and shouldn't be used. Use clipBehavior instead

Viewed 5353

I need an overflowed widget using clip behavior and I have no idea how to do that?

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

enter image description here

2 Answers

Use clipBehavior like this:

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

Use

clipBehavior: Clip.none,

Instead of

overflow: Overflow.clip,

overflow is deprecated since flutter 2.10.

Related