Flutter-如何更改粘贴按钮的样式?

时间:2018-12-29 01:44:46

标签: android dart flutter

enter image description here

我想更改图像中按钮的字体颜色,大小和边框半径,谢谢!

2 个答案:

答案 0 :(得分:1)

您可以通过cardTheme中的MaterialApp进行更改

答案 1 :(得分:0)

example

   RaisedButton(
          onPressed: () {},
          color: Colors.blue,
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(20.0),
          ),
          child: Text(
            'PASTE',
            style: TextStyle(
              fontSize: 15.0,
              color: Colors.white,
            ),
          ),
        )