Showing
1 changed file
with
2 additions
and
7 deletions
| @@ -172,16 +172,11 @@ struct CarouselLayout01CardView { | @@ -172,16 +172,11 @@ struct CarouselLayout01CardView { | ||
| 172 | 172 | ||
| 173 | build() { | 173 | build() { |
| 174 | Stack() { | 174 | Stack() { |
| 175 | - Image(this.item.coverUrl) | 175 | + Image(this.loadImg ? this.item.coverUrl : '') |
| 176 | .width(CommonConstants.FULL_PARENT) | 176 | .width(CommonConstants.FULL_PARENT) |
| 177 | .height(CommonConstants.FULL_PARENT) | 177 | .height(CommonConstants.FULL_PARENT) |
| 178 | .objectFit(ImageFit.Cover) | 178 | .objectFit(ImageFit.Cover) |
| 179 | - .visibility(this.loadImg ? Visibility.Visible : Visibility.None) | ||
| 180 | - | ||
| 181 | - Row() | ||
| 182 | - .width(CommonConstants.FULL_PARENT) | ||
| 183 | - .height(CommonConstants.FULL_PARENT) | ||
| 184 | - .visibility(this.loadImg ? Visibility.None : Visibility.Visible) | 179 | + .backgroundColor(0xf5f5f5) |
| 185 | 180 | ||
| 186 | Row() | 181 | Row() |
| 187 | .width(CommonConstants.FULL_PARENT) | 182 | .width(CommonConstants.FULL_PARENT) |
-
Please register or login to post a comment