Full Screen Background
This commit is contained in:
@@ -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> {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user