mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-24 16:04:43 +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(),
|
child: CircularProgressIndicator(),
|
||||||
),
|
),
|
||||||
HorizontalPageViewer(
|
HorizontalPageViewer(
|
||||||
|
key: _pageViewerKey,
|
||||||
pageCount: _streamFilesView.length,
|
pageCount: _streamFilesView.length,
|
||||||
pageBuilder: (context, i) =>
|
pageBuilder: (context, i) =>
|
||||||
_buildPage(context, i, originalBrightness),
|
_buildPage(context, i, originalBrightness),
|
||||||
|
@ -882,6 +883,8 @@ class _ViewerState extends State<Viewer>
|
||||||
late List<FileDescriptor> _streamFilesView;
|
late List<FileDescriptor> _streamFilesView;
|
||||||
bool _isStreamFilesCopy = false;
|
bool _isStreamFilesCopy = false;
|
||||||
|
|
||||||
|
final _pageViewerKey = GlobalKey();
|
||||||
|
|
||||||
static const _viewportFraction = 1.05;
|
static const _viewportFraction = 1.05;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue