⚡ Remove app background resize image
This commit is contained in:
parent
d11622e450
commit
d257a9697b
@ -214,9 +214,6 @@ class AppBackground extends ConsumerWidget {
|
|||||||
return imageFileAsync.when(
|
return imageFileAsync.when(
|
||||||
data: (file) {
|
data: (file) {
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
final devicePixelRatio = MediaQuery.of(context).devicePixelRatio;
|
|
||||||
|
|
||||||
final size = MediaQuery.of(context).size;
|
|
||||||
return Container(
|
return Container(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
child: Container(
|
child: Container(
|
||||||
@ -225,12 +222,7 @@ class AppBackground extends ConsumerWidget {
|
|||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
opacity: 0.2,
|
opacity: 0.2,
|
||||||
image: ResizeImage(
|
image: FileImage(file),
|
||||||
FileImage(file),
|
|
||||||
width: (size.width * devicePixelRatio).round(),
|
|
||||||
height: (size.height * devicePixelRatio).round(),
|
|
||||||
policy: ResizeImagePolicy.fit,
|
|
||||||
),
|
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user