|
@@ -20,23 +20,22 @@ class WatchThemeCharacterAvatar extends StatelessWidget { |
|
@@ -20,23 +20,22 @@ class WatchThemeCharacterAvatar extends StatelessWidget { |
|
20
|
return SizedBox(
|
20
|
return SizedBox(
|
|
21
|
width: avatarSize,
|
21
|
width: avatarSize,
|
|
22
|
height: avatarSize,
|
22
|
height: avatarSize,
|
|
23
|
- child: Container(
|
23
|
+ child: ClipRRect(
|
|
|
|
24
|
+ borderRadius: BorderRadius.circular(16),
|
|
|
|
25
|
+ child: Container(
|
|
24
|
width: avatarSize,
|
26
|
width: avatarSize,
|
|
25
|
- height: avatarSize,
|
|
|
|
26
|
- decoration: const BoxDecoration(
|
|
|
|
27
|
- color: Color(0xFFF5F2FF),
|
|
|
|
28
|
- shape: BoxShape.circle,
|
|
|
|
29
|
- ),
|
27
|
+ height: avatarSize,
|
|
30
|
alignment: Alignment.center,
|
28
|
alignment: Alignment.center,
|
|
31
|
child: empty || (assetPath == null && imageUrl == null)
|
29
|
child: empty || (assetPath == null && imageUrl == null)
|
|
32
|
? const SizedBox.shrink()
|
30
|
? const SizedBox.shrink()
|
|
33
|
: _buildImage(avatarSize),
|
31
|
: _buildImage(avatarSize),
|
|
34
|
),
|
32
|
),
|
|
|
|
33
|
+ )
|
|
35
|
);
|
34
|
);
|
|
36
|
}
|
35
|
}
|
|
37
|
|
36
|
|
|
38
|
Widget _buildImage(double avatarSize) {
|
37
|
Widget _buildImage(double avatarSize) {
|
|
39
|
- final width = avatarSize * 0.636;
|
38
|
+ final width = avatarSize;
|
|
40
|
if (imageUrl != null && imageUrl!.isNotEmpty) {
|
39
|
if (imageUrl != null && imageUrl!.isNotEmpty) {
|
|
41
|
return Image.network(
|
40
|
return Image.network(
|
|
42
|
imageUrl!,
|
41
|
imageUrl!,
|