📜  在颤动中更改字体大小 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:12.785000             🧑  作者: Mango

代码示例4
new MaterialButton(
  height: 140.0,
  minWidth: double.infinity,
  color: Theme.of(context).primaryColor,
  textColor: Colors.white,
  child: new Text(
    "material button",
    style: new TextStyle(
      fontSize: 20.0,
      color: Colors.yellow,
    ),
  ),
  onPressed: () => {},
  splashColor: Colors.redAccent,
);