Custom Textbutton shape

Viewed 243

How to achieve Textbutton shape like this image image

I've tried this

TextButton(
    onPressed: () {},
    style: ButtonStyle(
      shape: MaterialStateProperty.all<BeveledRectangleBorder>(
          BeveledRectangleBorder(
        borderRadius: BorderRadius.circular(10),
      )),
      backgroundColor: MaterialStateProperty.all<Color>(Colors.red),
    ),
    child: Text('')),
1 Answers
Related