Commit 3d824df 1 parent 7d39fc2 commit 3d824df Copy full SHA for 3d824df
File tree 3 files changed +18
-10
lines changed
lib/screens/home/trending
3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ class _MovieswithProviderState extends State<MovieswithProvider> {
78
78
child: MovieCard (
79
79
title: movie.title,
80
80
type: movie.type,
81
- // type: "movies",
82
81
imgUrl: movie.movieImgurl,
83
82
rating: movie.rating,
84
83
youtubeid: movie.youtubetrailer,
@@ -90,7 +89,14 @@ class _MovieswithProviderState extends State<MovieswithProvider> {
90
89
),
91
90
);
92
91
},
93
- staggeredTileBuilder: (int index) => const StaggeredTile .fit (1 ),
92
+ staggeredTileBuilder: (int index) {
93
+ // Make the tile at the 3rd position span both columns
94
+ // if (index == 2) {
95
+ // return const StaggeredTile.fit(2); // Full width
96
+ // } else {
97
+ return const StaggeredTile .fit (1 ); // Half width
98
+ // }
99
+ },
94
100
mainAxisSpacing: 4.0 ,
95
101
crossAxisSpacing: 4.0 ,
96
102
),
Original file line number Diff line number Diff line change @@ -98,13 +98,7 @@ class _TrendingState extends State<Trending> {
98
98
);
99
99
}
100
100
}),
101
- if (adsControllerAvailable) ...[
102
- const Expanded (
103
- child: Center (
104
- child: BannerAdWidget (),
105
- ),
106
- ),
107
- ],
101
+
108
102
Consumer <MovieProvider >(builder: (context, movieProvider, child) {
109
103
if (movieProvider.topPickloading) {
110
104
return Center (
@@ -154,7 +148,15 @@ class _TrendingState extends State<Trending> {
154
148
],
155
149
);
156
150
}
157
- })
151
+ }),
152
+
153
+ if (adsControllerAvailable) ...[
154
+ const Expanded (
155
+ child: Center (
156
+ child: BannerAdWidget (),
157
+ ),
158
+ ),
159
+ ],
158
160
],
159
161
),
160
162
);
You can’t perform that action at this time.
0 commit comments