|
...
|
...
|
@@ -114,8 +114,6 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
super.didChangeDependencies();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//监听输入框,设置登录按钮状态
|
|
|
|
setActivate() {
|
|
|
|
if (_sellerCodeController.text.isNotEmpty &&
|
|
...
|
...
|
@@ -418,40 +416,48 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
width: prefixIconWidth,
|
|
|
|
),
|
|
|
|
HEmptyView(26),
|
|
|
|
Text(
|
|
|
|
Center(
|
|
|
|
child: Text(
|
|
|
|
"商户编号",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Expanded(
|
|
|
|
child: TextField(
|
|
|
|
controller: _sellerCodeController,
|
|
|
|
focusNode: _sellerCodeFocusNode,
|
|
|
|
// autofocus: _sellerCodeController.text.isEmpty,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
textAlignVertical: TextAlignVertical.center,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: "请输入6位商户编码",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_c1c1c1,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
),
|
|
|
|
border: InputBorder.none,
|
|
|
|
contentPadding: EdgeInsets.symmetric(
|
|
|
|
horizontal: 10, vertical: 14),
|
|
|
|
),
|
|
|
|
onChanged: (_) {
|
|
|
|
setActivate();
|
|
|
|
},
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
),
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setHeight(84),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(20),
|
|
|
|
right: ScreenUtil().setWidth(20),
|
|
|
|
top: ScreenUtil().setWidth(8)),
|
|
|
|
child: TextField(
|
|
|
|
controller: _sellerCodeController,
|
|
|
|
focusNode: _sellerCodeFocusNode,
|
|
|
|
// autofocus: _sellerCodeController.text.isEmpty,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: "请输入6位商户编码",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_c1c1c1,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
),
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
onChanged: (_) {
|
|
|
|
setActivate();
|
|
|
|
},
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setHeight(84),
|
|
|
|
width: ScreenUtil().setWidth(611),
|
|
...
|
...
|
@@ -479,6 +485,12 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setHeight(84),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(20),
|
|
|
|
right: ScreenUtil().setWidth(20),
|
|
|
|
top: ScreenUtil().setWidth(8)),
|
|
|
|
child: TextField(
|
|
|
|
controller: _accountController,
|
|
|
|
focusNode: _accountFocusNode,
|
|
...
|
...
|
@@ -490,16 +502,16 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_c1c1c1,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
border: InputBorder.none,
|
|
|
|
contentPadding: EdgeInsets.symmetric(
|
|
|
|
horizontal: 10, vertical: 14),
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
onChanged: (_) {
|
|
|
|
setActivate();
|
|
|
|
},
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
))
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
Container(
|
|
...
|
...
|
@@ -531,30 +543,36 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: TextField(
|
|
|
|
controller: _pwdController,
|
|
|
|
focusNode: _pwdFocusNode,
|
|
|
|
// autofocus: _sellerCodeController.text.isNotEmpty &&
|
|
|
|
// _accountController.text.isNotEmpty &&
|
|
|
|
// _pwdController.text.isEmpty,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: "请输入密码",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_c1c1c1,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
border: InputBorder.none,
|
|
|
|
contentPadding: EdgeInsets.symmetric(
|
|
|
|
horizontal: 10, vertical: 14),
|
|
|
|
),
|
|
|
|
onChanged: (_) {
|
|
|
|
setActivate();
|
|
|
|
},
|
|
|
|
obscureText: obscureText,
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
),
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setHeight(84),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(20),
|
|
|
|
right: ScreenUtil().setWidth(20),
|
|
|
|
top: ScreenUtil().setWidth(8)),
|
|
|
|
child: TextField(
|
|
|
|
controller: _pwdController,
|
|
|
|
focusNode: _pwdFocusNode,
|
|
|
|
// autofocus: _sellerCodeController.text.isNotEmpty &&
|
|
|
|
// _accountController.text.isNotEmpty &&
|
|
|
|
// _pwdController.text.isEmpty,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_353535,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: "请输入密码",
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_c1c1c1,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
onChanged: (_) {
|
|
|
|
setActivate();
|
|
|
|
},
|
|
|
|
obscureText: obscureText,
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
GestureDetector(
|
|
|
|
child: Padding(
|
|
...
|
...
|
@@ -575,6 +593,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(611),
|
|
|
|
margin: EdgeInsets.only(top: ScreenUtil().setHeight(16)),
|
...
|
...
|
|