From 7b0ce3333cc8c1da0aea249c4d70b578ceffdab4 Mon Sep 17 00:00:00 2001 From: NatashaZettler Date: Fri, 1 Dec 2023 01:04:37 -0300 Subject: [PATCH 1/2] Update nuvigator.dart --- lib/src/nuvigator.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/nuvigator.dart b/lib/src/nuvigator.dart index ababbf1..e3cdbd9 100644 --- a/lib/src/nuvigator.dart +++ b/lib/src/nuvigator.dart @@ -172,6 +172,10 @@ class NuvigatorState extends NavigatorState return widget.inheritableObservers; } + void addObserver(NavigatorObserver observer) { + widget.observers.add(observer); + } + @override void initState() { parent = Nuvigator.of(context, nullOk: true); From 61666fabc301a3d92ffac63ec17abb30a3488725 Mon Sep 17 00:00:00 2001 From: NatashaZettler Date: Fri, 1 Dec 2023 15:01:00 -0300 Subject: [PATCH 2/2] format --- lib/src/nuvigator.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/nuvigator.dart b/lib/src/nuvigator.dart index e3cdbd9..60f4022 100644 --- a/lib/src/nuvigator.dart +++ b/lib/src/nuvigator.dart @@ -175,7 +175,7 @@ class NuvigatorState extends NavigatorState void addObserver(NavigatorObserver observer) { widget.observers.add(observer); } - + @override void initState() { parent = Nuvigator.of(context, nullOk: true);