How to achieve Textbutton shape like this 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('')),