Answers for "how to give border to flatbutton in flutter"

0

flutter border around textbutton

OutlinedButton(
  onPressed: null,
  style: ButtonStyle(
    shape: MaterialStateProperty.all(
      RoundedRectangleBorder(
      	borderRadius: BorderRadius.circular(30.0),
      )
	),
  ),
  child: const Text("Button text"),
);
Posted by: Guest on September-19-2021
2

flutter outlinedbutton border radius

OutlinedButton(
  child: Text('Woolha.com'),
  style: OutlinedButton.styleFrom(
    primary: Colors.white,
    backgroundColor: Colors.teal,
    shape: const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(10))),
  ),
)
Posted by: Guest on September-05-2021
0

flatbutton border flutter

// It Does Possible!
FlatButton(
          shape: RoundedRectangleBorder(side: BorderSide(
            color: Colors.blue,
            width: 1,
            style: BorderStyle.solid
          ),
          borderRadius: BorderRadius.circular(50)),
          onPressed: null,
          child: Text('Button', style: TextStyle(color: Colors.blue)
          ),
          textColor: MyColor.white,
        )
Posted by: Guest on February-07-2022

Code answers related to "how to give border to flatbutton in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language