📜  ElevatedButton 颤动风格 - Dart 代码示例

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

代码示例1
ElevatedButton(
  style: ElevatedButton.styleFrom(
  onPrimary: Colors.black87,
  primary: Colors.grey[300],
  minimumSize: Size(88, 36),
  padding: EdgeInsets.symmetric(horizontal: 16),
  shape: ElevatedButton.styleFrom(
    primary: ThemeColors.darkBg,
    shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10.0), side: BorderSide(color: Colors.black)),
    ),
  onPressed: () { },
  child: Text('Looks like a RaisedButton'),
)