Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

Commit bf87c59

Browse files
DavidMina96a7medev
authored andcommitted
Configure Repro Steps
1 parent 459f171 commit bf87c59

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

example/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class InstabugApp extends StatelessWidget {
5151
child: Consumer<SettingsState>(
5252
builder: (context, state, child) {
5353
return MaterialApp(
54+
navigatorObservers: [InstabugNavigatorObserver()],
5455
title: 'Instabug Flutter Example',
5556
themeMode: state.colorTheme == ColorTheme.light
5657
? ThemeMode.light

example/lib/widgets/product_card.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ class ProductCard extends StatelessWidget {
2121

2222
Navigator.push(
2323
context,
24-
MaterialPageRoute(builder: (_) => selectedProduct.screen),
24+
MaterialPageRoute(
25+
builder: (_) => selectedProduct.screen,
26+
settings: RouteSettings(name: selectedProduct.title),
27+
),
2528
);
2629
}
2730

0 commit comments

Comments
 (0)