how to remove border in OutlinedButton

Viewed 1320

I'm having trouble when I want to remove the border on the OutlineButton

 OutlinedButton(
  onPressed: () {},
  child: const Text('Pext Page'),
 )

please help me!!

1 Answers

Try below code hope its help to you.

  OutlinedButton(
    onPressed: () {},
    child: Text('Outlined button'),
    style: OutlinedButton.styleFrom(
      side: BorderSide(
         color: Colors.transparent,
      ),
    ),
  ),

Your result screen-> image

Or you can used TextButton also

 TextButton(
    onPressed: () {},
    child: Text('Text button'),
  ),

Your result screen using TextButton-> image

Related