feat: Enhance navigation robustness by redirecting to the appropriate home page on navigation errors or when popping the root route.

This commit is contained in:
Achintha Isuru
2026-02-28 17:02:44 -05:00
parent 76424b1b1f
commit c26128f1f2
4 changed files with 80 additions and 226 deletions

View File

@@ -3,7 +3,6 @@ import 'package:design_system/design_system.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_modular/flutter_modular.dart';
import 'package:krow_core/core.dart';
import '../blocs/billing_bloc.dart';
import '../blocs/billing_state.dart';
@@ -21,7 +20,6 @@ class PendingInvoicesPage extends StatelessWidget {
appBar: UiAppBar(
title: t.client_billing.awaiting_approval,
showBackButton: true,
onLeadingPressed: () => Modular.to.toClientBilling(),
),
body: _buildBody(context, state),
);