|
|
@@ -97,10 +97,14 @@ class LoginPage extends BasePage<LoginController> {
|
|
|
child: TextField(
|
|
|
focusNode: controller.phoneFocusNode,
|
|
|
maxLines: 1,
|
|
|
+ maxLength: 11,
|
|
|
+ cursorColor: ColorName.colorPrimary,
|
|
|
+ keyboardType: TextInputType.phone,
|
|
|
textAlignVertical: TextAlignVertical.center,
|
|
|
textInputAction: TextInputAction.next,
|
|
|
decoration: InputDecoration(
|
|
|
hintText: '输入手机号码',
|
|
|
+ counterText: '',
|
|
|
hintStyle: TextStyle(fontSize: 16, color: "#AFAFAF".toColor()),
|
|
|
labelStyle: const TextStyle(
|
|
|
fontSize: 16,
|
|
|
@@ -138,6 +142,9 @@ class LoginPage extends BasePage<LoginController> {
|
|
|
child: TextField(
|
|
|
maxLines: 1,
|
|
|
maxLength: 4,
|
|
|
+ keyboardType: TextInputType.number,
|
|
|
+ inputFormatters: [FilteringTextInputFormatter.digitsOnly],
|
|
|
+ cursorColor: ColorName.colorPrimary,
|
|
|
textAlignVertical: TextAlignVertical.center,
|
|
|
textInputAction: TextInputAction.done,
|
|
|
decoration: InputDecoration(
|