flutter elevated button radius

To set the radius of an elevated button in Flutter, you can use the shape property of the ElevatedButton widget and provide it with a RoundedRectangleBorder with a specified radius. Here's an example of how you can do this:

ElevatedButton(
  onPressed: () {
    // Button action
  },
  style: ElevatedButton.styleFrom(
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(10), // Specify the desired radius here
    ),
  ),
  child: Text('Elevated Button'),
),

In the code snippet above, the borderRadius property of the RoundedRectangleBorder is set to BorderRadius.circular(10), which creates a rounded rectangle shape with a radius of 10. You can adjust the value to your desired radius.

I hope this helps! Let me know if you have any further questions.