From 3a6ab1e82586eb7e81b1a78c7304dab9f84910cf Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sun, 26 Jul 2026 19:00:09 +0200 Subject: [PATCH] fix: Navigation back from the details view --- lib/src/ui/bloc/details_bloc.dart | 2 +- lib/src/ui/pages/details/details.dart | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/src/ui/bloc/details_bloc.dart b/lib/src/ui/bloc/details_bloc.dart index 2fc99a7..02e99c8 100644 --- a/lib/src/ui/bloc/details_bloc.dart +++ b/lib/src/ui/bloc/details_bloc.dart @@ -44,7 +44,7 @@ class DetailsBloc extends Bloc { ); GetIt.I.get().add( - GoNavigationEvent(detailsRoute), + PushNavigationEvent(detailsRoute), ); } diff --git a/lib/src/ui/pages/details/details.dart b/lib/src/ui/pages/details/details.dart index 3cbb497..933f614 100644 --- a/lib/src/ui/pages/details/details.dart +++ b/lib/src/ui/pages/details/details.dart @@ -16,6 +16,7 @@ import 'package:flutter/services.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:get_it/get_it.dart'; +import 'package:go_router/go_router.dart'; import 'package:url_launcher/url_launcher.dart'; class DetailsPage extends StatelessWidget { @@ -60,6 +61,12 @@ class DetailsPage extends StatelessWidget { return Scaffold( appBar: AppBar( title: Text(t.details.title), + leading: IconButton( + icon: const Icon(Icons.arrow_back), + onPressed: () { + GoRouter.of(context).pop(); + }, + ), ), body: BlocBuilder( builder: (context, state) {