mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 08:08:14 -06:00
Prevent navigation change event to same page
This commit is contained in:
@@ -49,8 +49,11 @@ class _HomePageState extends State<HomePage> {
|
|||||||
key: rootScaffoldKey,
|
key: rootScaffoldKey,
|
||||||
bottomNavigationBar: BottomNavBar(
|
bottomNavigationBar: BottomNavBar(
|
||||||
selectedIndex: _currentIndex,
|
selectedIndex: _currentIndex,
|
||||||
onNavigationChanged: (index) =>
|
onNavigationChanged: (index) {
|
||||||
setState(() => _currentIndex = index),
|
if (_currentIndex != index) {
|
||||||
|
setState(() => _currentIndex = index);
|
||||||
|
}
|
||||||
|
},
|
||||||
),
|
),
|
||||||
drawer: const InfoDrawer(),
|
drawer: const InfoDrawer(),
|
||||||
body: [
|
body: [
|
||||||
|
|||||||
Reference in New Issue
Block a user