diff --git a/lib/features/movies/presentation/movie_detail_screen.dart b/lib/features/movies/presentation/movie_detail_screen.dart index e727712..1eaf8df 100644 --- a/lib/features/movies/presentation/movie_detail_screen.dart +++ b/lib/features/movies/presentation/movie_detail_screen.dart @@ -98,37 +98,38 @@ class _MovieDetailScreenState extends ConsumerState { label: const Text('Speichern'), ) : null, - body: Container( - decoration: (backdrop != null || poster != null) - ? BoxDecoration( - image: DecorationImage( - image: NetworkImage(backdrop != null - ? 'https://image.tmdb.org/t/p/w780$backdrop' - : 'https://image.tmdb.org/t/p/w342$poster'), - fit: BoxFit.cover, - ), - ) - : null, - foregroundDecoration: BoxDecoration( - gradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - Colors.black.withOpacity(0.2), - Colors.black.withOpacity(0.6), - ], + body: SizedBox.expand( + child: Container( + decoration: (backdrop != null || poster != null) + ? BoxDecoration( + image: DecorationImage( + image: NetworkImage(backdrop != null + ? 'https://image.tmdb.org/t/p/w780$backdrop' + : 'https://image.tmdb.org/t/p/w342$poster'), + fit: BoxFit.cover, + ), + ) + : null, + foregroundDecoration: BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topCenter, + end: Alignment.bottomCenter, + colors: [ + Colors.black.withOpacity(0.2), + Colors.black.withOpacity(0.6), + ], + ), ), - ), - child: SingleChildScrollView( - padding: EdgeInsets.only( - top: MediaQuery.of(context).padding.top + kToolbarHeight + 12, - left: 12, - right: 12, - bottom: 24, - ), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ + child: SingleChildScrollView( + padding: EdgeInsets.only( + top: MediaQuery.of(context).padding.top + kToolbarHeight + 12, + left: 12, + right: 12, + bottom: 24, + ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ // Header box Container( decoration: BoxDecoration( @@ -217,6 +218,7 @@ class _MovieDetailScreenState extends ConsumerState { ), ), ), + ), ); } @@ -292,7 +294,7 @@ class _MovieDetailScreenState extends ConsumerState { opt, style: const TextStyle(color: Colors.white), ), - ), + ), ], ), ); diff --git a/lib/features/series/presentation/series_detail_screen.dart b/lib/features/series/presentation/series_detail_screen.dart index 04bb5b4..2918d6b 100644 --- a/lib/features/series/presentation/series_detail_screen.dart +++ b/lib/features/series/presentation/series_detail_screen.dart @@ -259,7 +259,8 @@ class _SeriesDetailScreenState extends ConsumerState { ), ) : null, - body: Container( + body: SizedBox.expand( + child: Container( decoration: bgPoster != null ? BoxDecoration( image: DecorationImage( @@ -311,6 +312,7 @@ class _SeriesDetailScreenState extends ConsumerState { ), ), ), + ), ); }