Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove border radius from TextButton flutter

I'm new to flutter, and I'm having this problem where my TextButton has a little border radius. Does anyone know how to remove the border radius from a TextButton?

My output

app output

My Code sorry for not including earlier My Code

like image 309
Logic Avatar asked Aug 24 '26 23:08

Logic


1 Answers

You can add a shape parameter to your TextButton

TextButton(
      style: TextButton.styleFrom(
          backgroundColor: Colors.yellow,
          shape: const RoundedRectangleBorder(
              borderRadius: BorderRadius.all(Radius.zero))),
      child: const Text("BUtton"),
      onPressed: () {},
    )
like image 173
Danny Rufus Avatar answered Aug 26 '26 18:08

Danny Rufus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!