07-21-2023, 09:38 PM
In my option the best way is to add Material() over the widget you are currently using.
return Material(
elevation: 20,
child: Container(),
);
return Material(
elevation: 20,
child: Container(),
);