Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

TextButton Flutter

final ButtonStyle flatButtonStyle = TextButton.styleFrom(
  primary: Colors.black87,
  minimumSize: Size(88, 36),
  padding: EdgeInsets.symmetric(horizontal: 16.0),
  shape: const RoundedRectangleBorder(
    borderRadius: BorderRadius.all(Radius.circular(2.0)),
  ),
);

TextButton(
  style: flatButtonStyle,
  onPressed: () { },
  child: Text('Looks like a FlatButton'),
)
Source by docs.flutter.dev #
 
PREVIOUS NEXT
Tagged: #TextButton #Flutter
ADD COMMENT
Topic
Name
7+9 =