|
|
|
@ -18,6 +18,7 @@ class CommonBottomNav extends StatelessWidget { |
|
|
|
currentIndex: currentIndex, |
|
|
|
onTap: (index) { |
|
|
|
// Navigate to the appropriate page based on index |
|
|
|
if(index ==currentIndex) return;//如果是当前页面,不跳转 |
|
|
|
switch (index) { |
|
|
|
case 0: |
|
|
|
Get.offAllNamed(Routes.home); |
|
|
|
|