解决输入框无法输入问题

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

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

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

Loading…
Cancel
Save