Skip to content

Commit 99a3ed4

Browse files
committed
Configure Repro Steps
1 parent a609c97 commit 99a3ed4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

example/lib/main.dart

+1
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

+4-1
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)