我需要更改"C:/elasticsearch-7.3.0/driver/com.mysql.jdbc_5.1.5.jar"
的边框颜色和宽度,我知道一种直接通过内联方式提及它的方法,如下所示:
OutlineButton
如果我按照以下所述进行操作,则它会影响OutlineButton(
child: Text('SIGN IN'),padding: EdgeInsets.all(8.0),onpressed: handleSignIn,borderSide: BorderSide(
color: Colors.white,//Color of the border
style: BorderStyle.solid,//Style of the border
width: 1,//width of the border
),)
和flatButton
,而不会影响RaisedButton
。
OutlineButton
那么,如何仅在全球范围内(通过整个应用程序)更改MaterialApp(
title: 'MyApp',theme: ThemeData(
buttonTheme: ButtonThemeData(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),// this effects to flatButton and RaisedButton
side: BorderSide(
color: Colors.white,//Color of the border
style: BorderStyle.solid,//Style of the border
width: 1,//width of the border
),),);
的边框颜色和宽度?