we can use ElevatedButton. styleFrom and this property has shadowColor Property with Elevation property . so you can simply give shadow with elevation in ElevatedButton.
Read moreHow do you get rid of the shadow on the high button Flutter?
styleFrom( elevation: 0.0, shadowColor: Colors. transparent, ),) , This should be the solution. It will remove the elevation and the shadows.
Read moreWhat is a raised button?
A Raised button is based on a Material widget whose Material . elevation increases when the button is pressed. Use raised buttons to add dimension to otherwise mostly flat layouts, e.g. in long busy lists of content, or in wide spaces. Avoid using raised buttons on already-raised content such as dialogs or cards.19 Nis 2018
Read moreWhat is elevation in raised button flutter?
In Flutter, RaisedButton widget is a material design concept of a button with elevation . It provides dimensionality to your UI along z-axis with clues of shadow. RaisedButton is depreciated.
Read moreWhy raised button is not working in flutter?
The solution is adding onPressed() property to RaisedButton. Because, if onPressed() property is not provided, even with the empty function, RaisedButton is considered as disabled .
Read more