高架按钮主题数据边框 - Flutter

Elevated Button themedata border - Flutter

如何通过 themedata 将 sideBorder 实现到 elevatedButton。enter image description here

 elevatedButtonTheme: ElevatedButtonThemeData(
    style: ButtonStyle(side: MaterialStateProperty<BorderSide>//Stuck here),
  ),

要在 Elevated Button 中使用主题数据边框,您必须使用 styleFrom 方法

elevatedButtonTheme: ElevatedButtonThemeData(
          style: ElevatedButton.styleFrom(
          side: BorderSide(color: Colors.black, width: 2.5)) )

了解更多信息styleFrom