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

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

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

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

@ -6,7 +6,8 @@ import 'package:velocity_x/velocity_x.dart';
class TelTextField extends StatefulWidget {
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
_TelTextFieldState createState() => _TelTextFieldState();
@ -26,6 +27,7 @@ class _TelTextFieldState extends State<TelTextField> {
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
keyboardType: TextInputType.number,
controller: widget.controller,
onChanged: widget.onChange,
decoration: InputDecoration(
isDense: true,
border: InputBorder.none,

Loading…
Cancel
Save