Commit a51754d51e4e26f65529bc3fd7f2fa026411435f

Authored by 权海
1 parent bb436210

feat(ui):调整主题预览 UI

... ... @@ -34,7 +34,7 @@ class StatusPreviewCard extends StatelessWidget {
Column(
children: [
WatchThemeCharacterAvatar(
size: 60,
size: 56,
assetPath: infoList[i].assetPath,
imageUrl: infoList[i].imgUrl,
),
... ...
... ... @@ -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!,
... ...