From 3c775028f999cc5ea17dce5d10d801860296f812 Mon Sep 17 00:00:00 2001 From: Vishnu Mohandas Date: Sun, 12 Apr 2020 03:41:33 +0530 Subject: [PATCH] Update scrolling behaviour --- lib/thumbnail_generator.dart | 0 lib/ui/gallery.dart | 2 +- lib/ui/image_widget.dart | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 lib/thumbnail_generator.dart diff --git a/lib/thumbnail_generator.dart b/lib/thumbnail_generator.dart deleted file mode 100644 index e69de29bb..000000000 diff --git a/lib/ui/gallery.dart b/lib/ui/gallery.dart index 30d7ae32b..79789c465 100644 --- a/lib/ui/gallery.dart +++ b/lib/ui/gallery.dart @@ -67,7 +67,7 @@ class _GalleryState extends State { Toast.show(photo.localPath, context); }, child: Padding( - padding: const EdgeInsets.all(1.0), + padding: const EdgeInsets.all(2.0), child: ImageWidget(photo), ), ); diff --git a/lib/ui/image_widget.dart b/lib/ui/image_widget.dart index 07ec88f39..c7f190394 100644 --- a/lib/ui/image_widget.dart +++ b/lib/ui/image_widget.dart @@ -39,7 +39,9 @@ class _ImageWidgetState extends State { builder: (context, snapshot) { if (snapshot.hasData) { Image image = Image.memory(snapshot.data, - width: 124, height: 124, fit: BoxFit.cover); + width: size.toDouble(), + height: size.toDouble(), + fit: BoxFit.cover); ImageLruCache.setData(path, size, image); return image; } else {