I'm having trouble when I want to remove the border on the OutlineButton
OutlinedButton(
onPressed: () {},
child: const Text('Pext Page'),
)
please help me!!
I'm having trouble when I want to remove the border on the OutlineButton
OutlinedButton(
onPressed: () {},
child: const Text('Pext Page'),
)
please help me!!
Try below code hope its help to you.
OutlinedButton(
onPressed: () {},
child: Text('Outlined button'),
style: OutlinedButton.styleFrom(
side: BorderSide(
color: Colors.transparent,
),
),
),
Or you can used TextButton also
TextButton(
onPressed: () {},
child: Text('Text button'),
),