Skip to content

Commit

Permalink
Merge pull request #6 from tenSunFree/master
Browse files Browse the repository at this point in the history
Fix #5, Fix abnormal activity screen
  • Loading branch information
Ansh-Rathod committed Oct 26, 2021
2 parents 5b7d6fb + ebee4a5 commit 5ffbe5e
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 5ffbe5e

Please sign in to comment.