Commit a51754d51e4e26f65529bc3fd7f2fa026411435f

Authored by 权海
1 parent bb436210

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

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