set trip to null, not 0
Some checks failed
Release / meta (push) Successful in 8s
Release / linux-build (push) Successful in 1m13s
Release / android-build (push) Successful in 11m2s
Release / release-master (push) Successful in 3s
Release / release-dev (push) Successful in 14s
Release / windows-build (push) Has been cancelled

This commit is contained in:
2025-12-11 20:15:06 +00:00
parent 26b1a4878f
commit 84d50d5a90
4 changed files with 215 additions and 222 deletions

View File

@@ -171,8 +171,9 @@ class _MyHomePageState extends State<MyHomePage> {
}
void _onItemTapped(int index, int currentIndex) {
if (index < 0 || index >= contentPages.length || index == currentIndex)
if (index < 0 || index >= contentPages.length || index == currentIndex) {
return;
}
context.push(contentPages[index]);
_getIndexFromLocation(contentPages[index]);
}