Preserve scroll position on file selection events
This commit is contained in:
parent
02f7e801c6
commit
abb0ab9187
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ class _GalleryState extends State<Gallery> {
|
|||
});
|
||||
}
|
||||
widget.selectedFiles.addListener(() {
|
||||
setState(() {});
|
||||
setState(() {
|
||||
_scrollOffset = _scrollController.offset;
|
||||
});
|
||||
});
|
||||
super.initState();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue