Skip to content

Commit

Permalink
change movie layout
Browse files Browse the repository at this point in the history
  • Loading branch information
andannn committed Jan 7, 2025
1 parent fe489eb commit 24e58d5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/feature/discover/recent_movies/recent_movies.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,10 @@ class RecentMoviesWidget extends StatelessWidget {
onTap: () {
RootRouterDelegate.get().navigateToDetailMedia(model.id);
},
child: SizedBox(
height: imageHeight,
child: AspectRatio(
aspectRatio: imageAspectRadio,
child: AFNetworkImage(
imageUrl: model.coverImage?.extraLarge ?? '',
),
child: AspectRatio(
aspectRatio: imageAspectRadio,
child: AFNetworkImage(
imageUrl: model.coverImage?.extraLarge ?? '',
),
),
),
Expand Down Expand Up @@ -138,7 +135,7 @@ class RecentMoviesWidget extends StatelessWidget {
itemCount: movies.length,
itemBuilder: (context, index) {
return SizedBox(

width: imageWidth.toDouble(),
child: itemBuilder(context, index),
);
},
Expand Down

0 comments on commit 24e58d5

Please sign in to comment.