|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import 'package:aku_new_community/base/base_style.dart';
|
|
|
|
|
import 'package:aku_new_community/extensions/num_ext.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
@ -29,6 +30,9 @@ class _PsdTextFieldState extends State<PsdTextField> {
|
|
|
|
|
borderRadius: BorderRadius.circular(60.w),
|
|
|
|
|
color: Colors.black.withOpacity(0.06),
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: TextField(
|
|
|
|
|
maxLength: 20,
|
|
|
|
|
onChanged: (text) {
|
|
|
|
@ -38,9 +42,7 @@ class _PsdTextFieldState extends State<PsdTextField> {
|
|
|
|
|
obscureText: !visible,
|
|
|
|
|
obscuringCharacter: '*',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.black.withOpacity(0.85),
|
|
|
|
|
fontSize: 32.sp
|
|
|
|
|
),
|
|
|
|
|
color: Colors.black.withOpacity(0.85), fontSize: 32.sp),
|
|
|
|
|
cursorColor: kPrimaryColor,
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
|
isDense: false,
|
|
|
|
@ -51,21 +53,22 @@ class _PsdTextFieldState extends State<PsdTextField> {
|
|
|
|
|
counterText: '',
|
|
|
|
|
suffixIconConstraints:
|
|
|
|
|
BoxConstraints(minHeight: 0, maxHeight: 0),
|
|
|
|
|
suffixIcon: GestureDetector(
|
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
|
color: Colors.black.withOpacity(0.25), fontSize: 28.sp)),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
GestureDetector(
|
|
|
|
|
onTap: () {
|
|
|
|
|
visible = !visible;
|
|
|
|
|
setState(() {});
|
|
|
|
|
},
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.only(right: 20.w),
|
|
|
|
|
child: Icon(
|
|
|
|
|
visible ? CupertinoIcons.eye : CupertinoIcons.eye_slash,
|
|
|
|
|
color: Colors.black.withOpacity(0.4),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
|
color: Colors.black.withOpacity(0.25), fontSize: 28.sp)),
|
|
|
|
|
24.wb,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|