解决输入框无法输入问题

pull/1/head
章文轩 3 years ago
parent eaa8eead49
commit 9029953dc4

@ -39,6 +39,7 @@ class _PsdTextFieldState extends State<PsdTextField> {
obscuringCharacter: '*', obscuringCharacter: '*',
style: TextStyle( style: TextStyle(
color: Colors.black.withOpacity(0.85), color: Colors.black.withOpacity(0.85),
fontSize: 32.sp
), ),
cursorColor: kPrimaryColor, cursorColor: kPrimaryColor,
decoration: InputDecoration( decoration: InputDecoration(
@ -49,7 +50,7 @@ class _PsdTextFieldState extends State<PsdTextField> {
hintText: widget.hintText ?? '请输入密码', hintText: widget.hintText ?? '请输入密码',
counterText: '', counterText: '',
suffixIconConstraints: suffixIconConstraints:
BoxConstraints(minHeight: 50.w, maxHeight: 50.w), BoxConstraints(minHeight: 0, maxHeight: 0),
suffixIcon: GestureDetector( suffixIcon: GestureDetector(
onTap: () { onTap: () {
visible = !visible; visible = !visible;

@ -32,13 +32,17 @@ class _TelTextFieldState extends State<TelTextField> {
onChanged: widget.onChange, onChanged: widget.onChange,
style: TextStyle( style: TextStyle(
color: Colors.black.withOpacity(0.85), color: Colors.black.withOpacity(0.85),
fontSize: 32.sp
), ),
cursorColor: kPrimaryColor, cursorColor: kPrimaryColor,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true, isDense: true,
border: InputBorder.none, border: InputBorder.none,
prefixIcon: Center(child: '+86'.text.black.make()), prefixIcon: Padding(
prefixIconConstraints: BoxConstraints.loose(Size(60, 60)), padding: EdgeInsets.only(left: 24.w),
child: '+86'.text.black.make(),
),
prefixIconConstraints: BoxConstraints(minHeight: 0,minWidth: 0),
contentPadding: EdgeInsets.symmetric(vertical: 30.w), contentPadding: EdgeInsets.symmetric(vertical: 30.w),
hintText: '点击输入手机号', hintText: '点击输入手机号',
hintStyle: hintStyle:

Loading…
Cancel
Save