Update scrolling behaviour
This commit is contained in:
parent
5826f8a7e0
commit
3c775028f9
3 changed files with 4 additions and 2 deletions
|
@ -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),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue