mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 12:07:54 -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,
|
||||
bottomNavigationBar: BottomNavBar(
|
||||
selectedIndex: _currentIndex,
|
||||
onNavigationChanged: (index) =>
|
||||
setState(() => _currentIndex = index),
|
||||
onNavigationChanged: (index) {
|
||||
if (_currentIndex != index) {
|
||||
setState(() => _currentIndex = index);
|
||||
}
|
||||
},
|
||||
),
|
||||
drawer: const InfoDrawer(),
|
||||
body: [
|
||||
|
||||
Reference in New Issue
Block a user