Update scrolling behaviour

This commit is contained in:
Vishnu Mohandas 2020-04-12 03:41:33 +05:30
parent 5826f8a7e0
commit 3c775028f9
3 changed files with 4 additions and 2 deletions

View file

@ -67,7 +67,7 @@ class _GalleryState extends State<Gallery> {
Toast.show(photo.localPath, context);
},
child: Padding(
padding: const EdgeInsets.all(1.0),
padding: const EdgeInsets.all(2.0),
child: ImageWidget(photo),
),
);

View file

@ -39,7 +39,9 @@ class _ImageWidgetState extends State<ImageWidget> {
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 {