Remove app background resize image

This commit is contained in:
LittleSheep 2025-05-24 02:23:23 +08:00
parent d11622e450
commit d257a9697b

View File

@ -214,9 +214,6 @@ class AppBackground extends ConsumerWidget {
return imageFileAsync.when(
data: (file) {
if (file != null) {
final devicePixelRatio = MediaQuery.of(context).devicePixelRatio;
final size = MediaQuery.of(context).size;
return Container(
color: Theme.of(context).colorScheme.surface,
child: Container(
@ -225,12 +222,7 @@ class AppBackground extends ConsumerWidget {
color: Theme.of(context).colorScheme.surface,
image: DecorationImage(
opacity: 0.2,
image: ResizeImage(
FileImage(file),
width: (size.width * devicePixelRatio).round(),
height: (size.height * devicePixelRatio).round(),
policy: ResizeImagePolicy.fit,
),
image: FileImage(file),
fit: BoxFit.cover,
),
),