|
@@ -111,15 +111,13 @@ class TabControllerPage extends ConsumerWidget {
|
|
|
],
|
|
|
builder: (context, child, animation) {
|
|
|
final tabsRouter = AutoTabsRouter.of(context);
|
|
|
- final appRouter = AutoRouter.of(context);
|
|
|
return WillPopScope(
|
|
|
onWillPop: () async {
|
|
|
bool atHomeTab = tabsRouter.activeIndex == 0;
|
|
|
if (!atHomeTab) {
|
|
|
tabsRouter.setActiveIndex(0);
|
|
|
- } else {
|
|
|
- appRouter.navigateBack();
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
return atHomeTab;
|
|
|
},
|
|
|
child: LayoutBuilder(
|