Full Screen Background

This commit is contained in:
2025-10-30 15:33:06 +01:00
parent fccaeb8f7a
commit 6ec3ad363c
2 changed files with 36 additions and 32 deletions
@@ -98,37 +98,38 @@ class _MovieDetailScreenState extends ConsumerState<MovieDetailScreen> {
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<MovieDetailScreen> {
),
),
),
),
);
}
@@ -292,7 +294,7 @@ class _MovieDetailScreenState extends ConsumerState<MovieDetailScreen> {
opt,
style: const TextStyle(color: Colors.white),
),
),
),
],
),
);
@@ -259,7 +259,8 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
),
)
: null,
body: Container(
body: SizedBox.expand(
child: Container(
decoration: bgPoster != null
? BoxDecoration(
image: DecorationImage(
@@ -311,6 +312,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
),
),
),
),
);
}