更新
This commit is contained in:
@@ -108,7 +108,7 @@ class _EPageState extends State<PersonPage> {
|
||||
TopSlideNotification.show(context,
|
||||
text: apiRespons.msg!);
|
||||
Get.offAllNamed("/bindDeviceSuccess");
|
||||
// Get.toNamed("/wifiPage");
|
||||
// Get.toNamed("/wifiPage");
|
||||
} else {
|
||||
TopSlideNotification.show(context,
|
||||
text: apiRespons.msg!,
|
||||
@@ -200,7 +200,8 @@ class _EPageState extends State<PersonPage> {
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color: themeController.currentColor.sc4,
|
||||
color: themeController
|
||||
.currentColor.sc4,
|
||||
),
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
@@ -286,26 +287,11 @@ class _EPageState extends State<PersonPage> {
|
||||
Container(
|
||||
width: 90.rpx,
|
||||
height: 90.rpx,
|
||||
decoration: BoxDecoration(),
|
||||
child: Container(
|
||||
clipBehavior:
|
||||
Clip.antiAlias,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: ColorFiltered(
|
||||
colorFilter: isMaleGreyed
|
||||
? ColorFilter.mode(
|
||||
Colors.grey
|
||||
.withOpacity(
|
||||
0.6),
|
||||
BlendMode
|
||||
.saturation)
|
||||
: ColorFilter.mode(
|
||||
Colors
|
||||
.transparent,
|
||||
BlendMode
|
||||
.saturation),
|
||||
child: ClipOval(
|
||||
child: Opacity(
|
||||
opacity: isMaleGreyed
|
||||
? 0.4
|
||||
: 1.0, // 控制透明度
|
||||
child: Image.asset(
|
||||
"assets/img/man.png",
|
||||
fit: BoxFit.cover,
|
||||
@@ -355,28 +341,13 @@ class _EPageState extends State<PersonPage> {
|
||||
Container(
|
||||
width: 90.rpx,
|
||||
height: 90.rpx,
|
||||
decoration: BoxDecoration(),
|
||||
child: Container(
|
||||
clipBehavior:
|
||||
Clip.antiAlias,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: ColorFiltered(
|
||||
colorFilter: isFemaleGreyed
|
||||
? ColorFilter.mode(
|
||||
Colors.grey
|
||||
.withOpacity(
|
||||
0.6),
|
||||
BlendMode
|
||||
.saturation)
|
||||
: ColorFilter.mode(
|
||||
Colors
|
||||
.transparent,
|
||||
BlendMode
|
||||
.saturation),
|
||||
child: ClipOval(
|
||||
child: Opacity(
|
||||
opacity: isFemaleGreyed
|
||||
? 0.4
|
||||
: 1.0, // 控制透明度
|
||||
child: Image.asset(
|
||||
"assets/img/woman.png",
|
||||
"assets/img/man.png",
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
@@ -431,18 +402,16 @@ class _EPageState extends State<PersonPage> {
|
||||
.requestFocus(FocusNode());
|
||||
Future.delayed(Duration(milliseconds: 250),
|
||||
() {
|
||||
showDateSelectionDialog(
|
||||
context,
|
||||
checkDate: personController.dateTime ??
|
||||
DateTime.now(),
|
||||
checkChange: (DateTime d) {
|
||||
personController.birthday.value =
|
||||
MyUtils.formatBindTime(d);
|
||||
personController.dateTime = d;
|
||||
personController.updateAll();
|
||||
},
|
||||
title: "生日".tr
|
||||
);
|
||||
showDateSelectionDialog(context,
|
||||
checkDate:
|
||||
personController.dateTime ??
|
||||
DateTime.now(),
|
||||
checkChange: (DateTime d) {
|
||||
personController.birthday.value =
|
||||
MyUtils.formatBindTime(d);
|
||||
personController.dateTime = d;
|
||||
personController.updateAll();
|
||||
}, title: "生日".tr);
|
||||
});
|
||||
},
|
||||
child: Center(
|
||||
|
||||
@@ -288,26 +288,11 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
||||
Container(
|
||||
width: 90.rpx,
|
||||
height: 90.rpx,
|
||||
decoration: BoxDecoration(),
|
||||
child: Container(
|
||||
clipBehavior:
|
||||
Clip.antiAlias,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: ColorFiltered(
|
||||
colorFilter: isMaleGreyed
|
||||
? ColorFilter.mode(
|
||||
Colors.grey
|
||||
.withOpacity(
|
||||
0.6),
|
||||
BlendMode
|
||||
.saturation)
|
||||
: ColorFilter.mode(
|
||||
Colors
|
||||
.transparent,
|
||||
BlendMode
|
||||
.saturation),
|
||||
child: ClipOval(
|
||||
child: Opacity(
|
||||
opacity: isMaleGreyed
|
||||
? 0.4
|
||||
: 1.0, // 控制透明度
|
||||
child: Image.asset(
|
||||
"assets/img/man.png",
|
||||
fit: BoxFit.cover,
|
||||
@@ -357,28 +342,13 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
||||
Container(
|
||||
width: 90.rpx,
|
||||
height: 90.rpx,
|
||||
decoration: BoxDecoration(),
|
||||
child: Container(
|
||||
clipBehavior:
|
||||
Clip.antiAlias,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: ColorFiltered(
|
||||
colorFilter: isFemaleGreyed
|
||||
? ColorFilter.mode(
|
||||
Colors.grey
|
||||
.withOpacity(
|
||||
0.6),
|
||||
BlendMode
|
||||
.saturation)
|
||||
: ColorFilter.mode(
|
||||
Colors
|
||||
.transparent,
|
||||
BlendMode
|
||||
.saturation),
|
||||
child: ClipOval(
|
||||
child: Opacity(
|
||||
opacity: isFemaleGreyed
|
||||
? 0.4
|
||||
: 1.0, // 控制透明度
|
||||
child: Image.asset(
|
||||
"assets/img/woman.png",
|
||||
"assets/img/man.png",
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user