Showing
7 changed files
with
12 additions
and
15 deletions
| @@ -106,7 +106,7 @@ class _FriendTrendTitle extends StatelessWidget { | @@ -106,7 +106,7 @@ class _FriendTrendTitle extends StatelessWidget { | ||
| 106 | decoration: ShapeDecoration( | 106 | decoration: ShapeDecoration( |
| 107 | image: imageUrl?.isNotEmpty == true | 107 | image: imageUrl?.isNotEmpty == true |
| 108 | ? DecorationImage( | 108 | ? DecorationImage( |
| 109 | - image: CachedNetworkImageProvider(imageUrl!), | 109 | + image: NetworkImage(imageUrl!), |
| 110 | fit: BoxFit.cover, | 110 | fit: BoxFit.cover, |
| 111 | ) | 111 | ) |
| 112 | : null, | 112 | : null, |
| @@ -122,7 +122,7 @@ class _TrendHeaderAvatar extends StatelessWidget { | @@ -122,7 +122,7 @@ class _TrendHeaderAvatar extends StatelessWidget { | ||
| 122 | decoration: ShapeDecoration( | 122 | decoration: ShapeDecoration( |
| 123 | image: imageUrl?.isNotEmpty == true | 123 | image: imageUrl?.isNotEmpty == true |
| 124 | ? DecorationImage( | 124 | ? DecorationImage( |
| 125 | - image: CachedNetworkImageProvider(imageUrl!), | 125 | + image: NetworkImage(imageUrl!), |
| 126 | fit: BoxFit.cover, | 126 | fit: BoxFit.cover, |
| 127 | ) | 127 | ) |
| 128 | : null, | 128 | : null, |
| @@ -361,8 +361,8 @@ class _Avatar extends StatelessWidget { | @@ -361,8 +361,8 @@ class _Avatar extends StatelessWidget { | ||
| 361 | child: SizedBox( | 361 | child: SizedBox( |
| 362 | width: 80, | 362 | width: 80, |
| 363 | height: 80, | 363 | height: 80, |
| 364 | - child: CachedNetworkImage( | ||
| 365 | - imageUrl: avatarUrl, | 364 | + child: Image.network( |
| 365 | + avatarUrl, | ||
| 366 | fit: BoxFit.cover, | 366 | fit: BoxFit.cover, |
| 367 | ), | 367 | ), |
| 368 | ), | 368 | ), |
| @@ -736,8 +736,8 @@ class _ThemeBubble extends StatelessWidget { | @@ -736,8 +736,8 @@ class _ThemeBubble extends StatelessWidget { | ||
| 736 | 736 | ||
| 737 | Widget _buildImage() { | 737 | Widget _buildImage() { |
| 738 | if (imageUrl != null && imageUrl!.isNotEmpty) { | 738 | if (imageUrl != null && imageUrl!.isNotEmpty) { |
| 739 | - return CachedNetworkImage( | ||
| 740 | - imageUrl: imageUrl!, | 739 | + return Image.network( |
| 740 | + imageUrl!, | ||
| 741 | width: 36, | 741 | width: 36, |
| 742 | height: 36, | 742 | height: 36, |
| 743 | fit: BoxFit.fill, | 743 | fit: BoxFit.fill, |
| @@ -650,7 +650,7 @@ class _TopFriendBar extends StatelessWidget { | @@ -650,7 +650,7 @@ class _TopFriendBar extends StatelessWidget { | ||
| 650 | margin: EdgeInsets.only(right: 4), | 650 | margin: EdgeInsets.only(right: 4), |
| 651 | decoration: ShapeDecoration( | 651 | decoration: ShapeDecoration( |
| 652 | image: DecorationImage( | 652 | image: DecorationImage( |
| 653 | - image: CachedNetworkImageProvider( | 653 | + image: NetworkImage( |
| 654 | '${controller.targetFriendInfo.value?.avatar}'), | 654 | '${controller.targetFriendInfo.value?.avatar}'), |
| 655 | fit: BoxFit.cover, | 655 | fit: BoxFit.cover, |
| 656 | ), | 656 | ), |
| @@ -134,8 +134,8 @@ class _BottomSheetFriendRow extends StatelessWidget { | @@ -134,8 +134,8 @@ class _BottomSheetFriendRow extends StatelessWidget { | ||
| 134 | ), | 134 | ), |
| 135 | ), | 135 | ), |
| 136 | child: ClipOval( | 136 | child: ClipOval( |
| 137 | - child: CachedNetworkImage( | ||
| 138 | - imageUrl: friend.avatar!, | 137 | + child: Image.network( |
| 138 | + friend.avatar!, | ||
| 139 | width: 28, | 139 | width: 28, |
| 140 | height: 28, | 140 | height: 28, |
| 141 | fit: BoxFit.cover, | 141 | fit: BoxFit.cover, |
| @@ -242,8 +242,8 @@ class _RowAvatar extends StatelessWidget { | @@ -242,8 +242,8 @@ class _RowAvatar extends StatelessWidget { | ||
| 242 | ), | 242 | ), |
| 243 | child: ClipOval( | 243 | child: ClipOval( |
| 244 | child: imageUrl?.isNotEmpty == true | 244 | child: imageUrl?.isNotEmpty == true |
| 245 | - ? CachedNetworkImage( | ||
| 246 | - imageUrl: imageUrl!, | 245 | + ? Image.network( |
| 246 | + imageUrl!, | ||
| 247 | width: 28, | 247 | width: 28, |
| 248 | height: 28, | 248 | height: 28, |
| 249 | fit: BoxFit.cover, | 249 | fit: BoxFit.cover, |
| @@ -167,10 +167,7 @@ class WatchFacePreview extends StatelessWidget { | @@ -167,10 +167,7 @@ class WatchFacePreview extends StatelessWidget { | ||
| 167 | Widget _buildFaceImage(String? themeUrl, String placeholder) { | 167 | Widget _buildFaceImage(String? themeUrl, String placeholder) { |
| 168 | if (themeUrl != null && themeUrl.isNotEmpty) { | 168 | if (themeUrl != null && themeUrl.isNotEmpty) { |
| 169 | if (themeUrl.isURL) { | 169 | if (themeUrl.isURL) { |
| 170 | - return CachedNetworkImage( | ||
| 171 | - imageUrl: themeUrl, | ||
| 172 | - fit: BoxFit.fitWidth, | ||
| 173 | - ); | 170 | + return Image.network(themeUrl, fit: BoxFit.fitWidth); |
| 174 | } | 171 | } |
| 175 | return Image.file(File(themeUrl), fit: BoxFit.fitWidth); | 172 | return Image.file(File(themeUrl), fit: BoxFit.fitWidth); |
| 176 | } | 173 | } |
-
Please register or login to post a comment