|
...
|
...
|
@@ -20,23 +20,22 @@ class WatchThemeCharacterAvatar extends StatelessWidget { |
|
|
|
return SizedBox(
|
|
|
|
width: avatarSize,
|
|
|
|
height: avatarSize,
|
|
|
|
child: Container(
|
|
|
|
child: ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(16),
|
|
|
|
child: Container(
|
|
|
|
width: avatarSize,
|
|
|
|
height: avatarSize,
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
color: Color(0xFFF5F2FF),
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
),
|
|
|
|
height: avatarSize,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: empty || (assetPath == null && imageUrl == null)
|
|
|
|
? const SizedBox.shrink()
|
|
|
|
: _buildImage(avatarSize),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Widget _buildImage(double avatarSize) {
|
|
|
|
final width = avatarSize * 0.636;
|
|
|
|
final width = avatarSize;
|
|
|
|
if (imageUrl != null && imageUrl!.isNotEmpty) {
|
|
|
|
return Image.network(
|
|
|
|
imageUrl!,
|
...
|
...
|
|