mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Fix page viewer incorrectly disposed
This commit is contained in:
parent
f34d56bae1
commit
705745f7fd
1 changed files with 3 additions and 0 deletions
|
@ -150,6 +150,7 @@ class _ViewerState extends State<Viewer>
|
|||
child: CircularProgressIndicator(),
|
||||
),
|
||||
HorizontalPageViewer(
|
||||
key: _pageViewerKey,
|
||||
pageCount: _streamFilesView.length,
|
||||
pageBuilder: (context, i) =>
|
||||
_buildPage(context, i, originalBrightness),
|
||||
|
@ -882,6 +883,8 @@ class _ViewerState extends State<Viewer>
|
|||
late List<FileDescriptor> _streamFilesView;
|
||||
bool _isStreamFilesCopy = false;
|
||||
|
||||
final _pageViewerKey = GlobalKey();
|
||||
|
||||
static const _viewportFraction = 1.05;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue