fix: navigation is more consistant

This commit is contained in:
2026-08-05 10:57:53 +02:00
parent 2896074ce4
commit 2c734493cf
10 changed files with 159 additions and 78 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import '../l10n/app_localizations.dart';
import '../utils/navigation.dart';
class ErrorScreenView extends StatelessWidget {
const ErrorScreenView({super.key});
@@ -14,7 +15,7 @@ class ErrorScreenView extends StatelessWidget {
return Scaffold(
appBar: AppBar(
leading: IconButton(
onPressed: () => context.pop(),
onPressed: () => context.popOrGo('/bar'),
icon: const Icon(Icons.arrow_back),
),
title: Text(l10n.errorScreen),