更新
This commit is contained in:
@@ -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