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
My Code sorry for not including earlier
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: () {},
)