登录夜密码改为验证码,去掉输入字符隐藏

hmxc
张萌 5 years ago
parent 6d364a6b35
commit 115bd12187

@ -25,7 +25,7 @@ class SignInPage extends StatefulWidget {
class _SignInPageState extends State<SignInPage> { class _SignInPageState extends State<SignInPage> {
TextEditingController _phone = new TextEditingController(); TextEditingController _phone = new TextEditingController();
TextEditingController _code = new TextEditingController(); TextEditingController _code = new TextEditingController();
// String _verifyStr = '获取验证码'; String _verifyStr = '获取验证码';
AppBar _appBar() { AppBar _appBar() {
return AppBar( return AppBar(
elevation: 0, elevation: 0,
@ -59,7 +59,8 @@ class _SignInPageState extends State<SignInPage> {
SizedBox(width: Screenutil.length(24)), SizedBox(width: Screenutil.length(24)),
Expanded( Expanded(
child: TextFormField( child: TextFormField(
obscureText: isCode, obscureText: false,
obscuringCharacter:'*',
cursorColor: Color(0xffffc40c), cursorColor: Color(0xffffc40c),
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
@ -85,32 +86,32 @@ class _SignInPageState extends State<SignInPage> {
), ),
), ),
), ),
// isCode isCode
// ? Row( ? Row(
// mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
// children: [ children: [
// SizedBox( SizedBox(
// width: 2, width: 2,
// height: Screenutil.length(29), height: Screenutil.length(29),
// child: DecoratedBox( child: DecoratedBox(
// decoration: BoxDecoration(color: Color(0xffd8d8d8)), decoration: BoxDecoration(color: Color(0xffd8d8d8)),
// ), ),
// ), ),
// SizedBox(width: Screenutil.length(16)), SizedBox(width: Screenutil.length(16)),
// InkWell( InkWell(
// child: Text( child: Text(
// _verifyStr, _verifyStr,
// style: TextStyle( style: TextStyle(
// color: BaseStyle.color999999, color: BaseStyle.color999999,
// fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
// fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
// ), ),
// ), ),
// onTap: null, onTap: null,
// ), ),
// ], ],
// ) )
// : SizedBox(), : SizedBox(),
], ],
), ),
); );
@ -231,7 +232,7 @@ class _SignInPageState extends State<SignInPage> {
AssetsImage.PHONELOGO, _phone, '请输入手机号码', false), AssetsImage.PHONELOGO, _phone, '请输入手机号码', false),
SizedBox(height: Screenutil.length(27)), SizedBox(height: Screenutil.length(27)),
_containerTextField( _containerTextField(
AssetsImage.CODELOGO, _code, '请输入', true), AssetsImage.CODELOGO, _code, '请输入验证', true),
SizedBox(height: Screenutil.length(59)), SizedBox(height: Screenutil.length(59)),
_inkWellLogin(), _inkWellLogin(),
Row( Row(

Loading…
Cancel
Save