Skip to content

Commit

Permalink
style: rounded the episode images
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanYuuki committed Nov 21, 2024
1 parent 9ef917b commit 95b74a9
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions lib/components/anime/details/episode_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,32 +108,35 @@ class _EpisodeGridState extends State<EpisodeGrid> {
flex: 1,
child: Stack(
children: [
CachedNetworkImage(
imageUrl: (widget.episodeImages != null &&
widget.episodeImages!.length > index
? widget.episodeImages![episodeNumber - 1]
['image'] ??
widget.coverImage
: widget.coverImage),
width: double.infinity,
height: double.infinity,
fit: BoxFit.cover,
placeholder: (context, url) {
return CachedNetworkImage(
imageUrl: widget.coverImage,
width: double.infinity,
height: double.infinity,
fit: BoxFit.cover,
);
},
errorWidget: (context, error, stackTrace) {
return CachedNetworkImage(
imageUrl: widget.coverImage,
width: double.infinity,
height: double.infinity,
fit: BoxFit.cover,
);
},
ClipRRect(
borderRadius: BorderRadius.circular(12),
child: CachedNetworkImage(
imageUrl: (widget.episodeImages != null &&
widget.episodeImages!.length > index
? widget.episodeImages![episodeNumber - 1]
['image'] ??
widget.coverImage
: widget.coverImage),
width: double.infinity,
height: double.infinity,
fit: BoxFit.cover,
placeholder: (context, url) {
return CachedNetworkImage(
imageUrl: widget.coverImage,
width: double.infinity,
height: double.infinity,
fit: BoxFit.cover,
);
},
errorWidget: (context, error, stackTrace) {
return CachedNetworkImage(
imageUrl: widget.coverImage,
width: double.infinity,
height: double.infinity,
fit: BoxFit.cover,
);
},
),
),
Positioned(
bottom: 10,
Expand Down

0 comments on commit 95b74a9

Please sign in to comment.