Update scrolling behaviour
This commit is contained in:
parent
5826f8a7e0
commit
3c775028f9
|
@ -67,7 +67,7 @@ class _GalleryState extends State<Gallery> {
|
||||||
Toast.show(photo.localPath, context);
|
Toast.show(photo.localPath, context);
|
||||||
},
|
},
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(1.0),
|
padding: const EdgeInsets.all(2.0),
|
||||||
child: ImageWidget(photo),
|
child: ImageWidget(photo),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -39,7 +39,9 @@ class _ImageWidgetState extends State<ImageWidget> {
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData) {
|
||||||
Image image = Image.memory(snapshot.data,
|
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);
|
ImageLruCache.setData(path, size, image);
|
||||||
return image;
|
return image;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue