Home > Software engineering >  How to remove border radius from TextButton flutter
How to remove border radius from TextButton flutter

Time:10-24

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 enter image description here

CodePudding user response:

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: () {},
    )
  • Related