@@ -10,14 +10,14 @@ enum ButtonType {
1010}
1111
1212class Button extends StatefulWidget {
13- Button ({Key key, this .type = ButtonType .btnDefault, this .disabled, this .onPressed, this .loading,this .text = "button" }) : super (key: key);
13+ Button ({Key key, this .type = ButtonType .btnDefault, this .disabled, this .onPressed, this .loading, this .text = "button" }) : super (key: key);
1414
1515 /// 按钮类型
1616 final ButtonType type; //按钮类型
1717 final bool disabled; //是否可用
1818 final VoidCallback onPressed; //按下时进行触发
1919 final bool loading; //是否加载中
20- final String text;//按钮上的文字
20+ final String text; //按钮上的文字
2121 @override
2222 State <StatefulWidget > createState () => _Button ();
2323}
@@ -75,9 +75,8 @@ class _Button extends State<Button> {
7575 double wuiBtnMiniFontSize = 13 ;
7676 double wuiBtnMiniHeight = 2.3 ;
7777
78-
7978 Color wuiBtnPlainPrimaryColor = SmartColor .parse ("rgba(26,173,25,1)" );
80- Color wuiBtnPlainPrimaryBorderColor = SmartColor .parse ("rgba(26,173,25,1)" );
79+ Color wuiBtnPlainPrimaryBorderColor = SmartColor .parse ("rgba(26,173,25,1)" );
8180 Color wuiBtnPlainPrimaryActiveColor = SmartColor .parse ("rgba(26,173,25,.6)" );
8281 Color wuiBtnPlainPrimaryActiveBorderColor = SmartColor .parse ("rgba(26,173,25,.6)" );
8382
@@ -114,7 +113,7 @@ class _Button extends State<Button> {
114113 }
115114
116115 _onTapDown (e) {
117- if (widget.disabled == true || widget.loading == true ) return ;
116+ if (widget.disabled == true || widget.loading == true ) return ;
118117 setState (() {
119118 fontColor = buttonColor.activeFontColor;
120119 btnColor = buttonColor.activeBg;
0 commit comments