mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 14:56:20 +01:00
Fix nav button sometimes lead to a wrong page
This commit is contained in:
parent
52b063211f
commit
8bd586fc4a
1 changed files with 2 additions and 0 deletions
|
@ -106,6 +106,7 @@ class _HorizontalPageViewerState extends State<HorizontalPageViewer> {
|
|||
return [
|
||||
if (_canSwitchRight)
|
||||
Align(
|
||||
key: ValueKey(0),
|
||||
alignment: Alignment.centerRight,
|
||||
child: Material(
|
||||
type: MaterialType.transparency,
|
||||
|
@ -143,6 +144,7 @@ class _HorizontalPageViewerState extends State<HorizontalPageViewer> {
|
|||
),
|
||||
if (_canSwitchLeft)
|
||||
Align(
|
||||
key: ValueKey(1),
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Material(
|
||||
type: MaterialType.transparency,
|
||||
|
|
Loading…
Reference in a new issue