mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-09 02:36:31 +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 [
|
return [
|
||||||
if (_canSwitchRight)
|
if (_canSwitchRight)
|
||||||
Align(
|
Align(
|
||||||
|
key: ValueKey(0),
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: Material(
|
child: Material(
|
||||||
type: MaterialType.transparency,
|
type: MaterialType.transparency,
|
||||||
|
@ -143,6 +144,7 @@ class _HorizontalPageViewerState extends State<HorizontalPageViewer> {
|
||||||
),
|
),
|
||||||
if (_canSwitchLeft)
|
if (_canSwitchLeft)
|
||||||
Align(
|
Align(
|
||||||
|
key: ValueKey(1),
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Material(
|
child: Material(
|
||||||
type: MaterialType.transparency,
|
type: MaterialType.transparency,
|
||||||
|
|
Loading…
Reference in a new issue