Skip to content

Commit 5ffbe5e

Browse files
authored
Merge pull request #6 from tenSunFree/master
Fix #5, Fix abnormal activity screen
2 parents 5b7d6fb + ebee4a5 commit 5ffbe5e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/screens/faavorite_screen/favorite.dart

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class ActivityTab extends StatefulWidget {
2929
class _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> {
323324
class 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,

0 commit comments

Comments
 (0)