styleFrom( elevation: 0.0, shadowColor: Colors. transparent, ),) , This should be the solution. It will remove the elevation and the shadows.
Read moreHow do you give a shadow to an elevated Button in Flutter?
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 more