Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: height and width

Prateek Sunalf5acad963f54
diff --git a/mobile/lib/services/home_widget_service.dart b/mobile/lib/services/home_widget_service.dart
index b7fea338c1..8c875fbf94 100644
--- a/mobile/lib/services/home_widget_service.dart
+++ b/mobile/lib/services/home_widget_service.dart
@@ -167,8 +167,8 @@ class HomeWidgetService {
final Image img = Image.file(
ogFile,
fit: BoxFit.cover,
- cacheWidth: ogSize.width.toInt(),
- cacheHeight: ogSize.height.toInt(),
+ cacheWidth: size.width.toInt(),
+ cacheHeight: size.height.toInt(),
);
await PreloadImage.loadImage(img.image);
@@ -179,8 +179,8 @@ class HomeWidgetService {
final widget = ClipSmoothRect(
radius: SmoothBorderRadius(cornerRadius: 32, cornerSmoothing: 1),
child: Container(
- width: ogSize.width,
- height: ogSize.height,
+ width: minSize,
+ height: minSize,
decoration: BoxDecoration(
color: platformBrightness == Brightness.light
? const Color.fromRGBO(251, 251, 251, 1)