File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
lib/screens/faavorite_screen Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class ActivityTab extends StatefulWidget {
2929class _ActivityTabState extends State <ActivityTab > {
3030 int currentPage = 0 ;
3131 late PageController controller;
32+
3233 @override
3334 void initState () {
3435 controller = PageController (initialPage: currentPage);
@@ -323,6 +324,7 @@ class _FavoritesState extends State<Favorites> {
323324class FavoriteMovieContainer extends StatefulWidget {
324325 final FavoriteWatchListModel movie;
325326 final bool isFavorite;
327+
326328 const FavoriteMovieContainer ({
327329 Key ? key,
328330 required this .movie,
@@ -435,10 +437,14 @@ class _FavoriteMovieContainerState extends State<FavoriteMovieContainer> {
435437 .round (),
436438 ),
437439 ),
440+ // Try to avoid the spacing is fixed
441+ // using Expanded can make it automatically and elastically adjust
442+ Expanded (child: SizedBox ()),
438443 Text (
439- " " +
440- widget.movie.rate.toString () +
441- "/10" ,
444+ // " " +
445+ // widget.movie.rate.toString() +
446+ // "/10",
447+ widget.movie.rate.toString () + "/10" ,
442448 style: normalText.copyWith (
443449 color: Colors .cyanAccent,
444450 letterSpacing: 1.2 ,
You can’t perform that action at this time.
0 commit comments