For the Stack widget specifically, if you previously used
overflow: Overflow.visible, replace it with clipBehavior: Clip.none.

Code before migration:

await

tester

pumpWidget

Directionality

textDirection:

TextDirection

ltr

child:

Center

child:

Stack

overflow:

Overflow

visible

children:

const

Widget

>[

SizedBox

width:

100.0

height:

100.0

),

],

),

),

),

);

Code after migration: