Skip to content

Commit

Permalink
Fix #5, Fix abnormal activity screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun committed Oct 25, 2021
1 parent 5b7d6fb commit ebee4a5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/screens/faavorite_screen/favorite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ActivityTab extends StatefulWidget {
class _ActivityTabState extends State<ActivityTab> {
int currentPage = 0;
late PageController controller;

@override
void initState() {
controller = PageController(initialPage: currentPage);
Expand Down Expand Up @@ -323,6 +324,7 @@ class _FavoritesState extends State<Favorites> {
class FavoriteMovieContainer extends StatefulWidget {
final FavoriteWatchListModel movie;
final bool isFavorite;

const FavoriteMovieContainer({
Key? key,
required this.movie,
Expand Down Expand Up @@ -435,10 +437,14 @@ class _FavoriteMovieContainerState extends State<FavoriteMovieContainer> {
.round(),
),
),
// Try to avoid the spacing is fixed
// using Expanded can make it automatically and elastically adjust
Expanded(child: SizedBox()),
Text(
" " +
widget.movie.rate.toString() +
"/10",
// " " +
// widget.movie.rate.toString() +
// "/10",
widget.movie.rate.toString() + "/10",
style: normalText.copyWith(
color: Colors.cyanAccent,
letterSpacing: 1.2,
Expand Down

0 comments on commit ebee4a5

Please sign in to comment.