登陆/忘记密码——填写手机号后下一步无法点击

pull/1/head
戴余标 3 years ago
parent 3566c19a32
commit b240d88854

@ -62,7 +62,11 @@ class _ForgotPsdPageState extends State<ForgotPsdPage> {
], ],
), ),
144.w.heightBox, 144.w.heightBox,
TelTextField(controller: _telController), TelTextField(
controller: _telController,
onChange: (content) {
setState(() {});
}),
100.w.heightBox, 100.w.heightBox,
LoginButtonWidget( LoginButtonWidget(
onTap: _telController.text.isNotEmpty onTap: _telController.text.isNotEmpty
@ -83,6 +87,7 @@ class _ForgotPsdPageState extends State<ForgotPsdPage> {
} else { } else {
BotToast.showText(text: base.msg); BotToast.showText(text: base.msg);
} }
setState(() {});
} }
: null, : null,
text: '下一步'), text: '下一步'),

@ -86,6 +86,9 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
40.w.heightBox, 40.w.heightBox,
TelTextField( TelTextField(
controller: _tel, controller: _tel,
onChange: (String) {
setState(() {});
},
), ),
40.w.heightBox, 40.w.heightBox,
PsdTextField( PsdTextField(
@ -156,7 +159,12 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
align: MainAxisAlignment.start, align: MainAxisAlignment.start,
), ),
40.w.heightBox, 40.w.heightBox,
TelTextField(controller: _tel), TelTextField(
controller: _tel,
onChange: (String) {
setState(() {});
},
),
100.w.heightBox, 100.w.heightBox,
LoginButtonWidget( LoginButtonWidget(
onTap: UserTool.appProvider.second < 60 onTap: UserTool.appProvider.second < 60

@ -6,7 +6,8 @@ import 'package:velocity_x/velocity_x.dart';
class TelTextField extends StatefulWidget { class TelTextField extends StatefulWidget {
final TextEditingController controller; final TextEditingController controller;
const TelTextField({Key? key, required this.controller}) : super(key: key); final Function(String) onChange;
const TelTextField({Key? key, required this.controller, required this.onChange}) : super(key: key);
@override @override
_TelTextFieldState createState() => _TelTextFieldState(); _TelTextFieldState createState() => _TelTextFieldState();
@ -26,6 +27,7 @@ class _TelTextFieldState extends State<TelTextField> {
inputFormatters: [FilteringTextInputFormatter.digitsOnly], inputFormatters: [FilteringTextInputFormatter.digitsOnly],
keyboardType: TextInputType.number, keyboardType: TextInputType.number,
controller: widget.controller, controller: widget.controller,
onChanged: widget.onChange,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true, isDense: true,
border: InputBorder.none, border: InputBorder.none,

Loading…
Cancel
Save