minor fix

This commit is contained in:
Thibault Deckers 2022-09-27 10:10:12 +02:00
parent 220e61784b
commit b82f7c2163
2 changed files with 5 additions and 4 deletions

View file

@ -33,6 +33,7 @@ void mainCommon(AppFlavor flavor) {
// - in profile/release mode: plain grey background
// This can be modified via `ErrorWidget.builder`
// ErrorWidget.builder = (details) => ErrorWidget(details.exception);
// cf https://docs.flutter.dev/testing/errors
runApp(AvesApp(flavor: flavor));
}

View file

@ -380,10 +380,10 @@ class _AvesAppState extends State<AvesApp> with WidgetsBindingObserver {
'locales': WidgetsBinding.instance.window.locales.join(', '),
'time_zone': '${now.timeZoneName} (${now.timeZoneOffset})',
});
_navigatorObservers = [
AvesApp.pageRouteObserver,
ReportingRouteTracker(),
];
setState(() => _navigatorObservers = [
AvesApp.pageRouteObserver,
ReportingRouteTracker(),
]);
}
void _onNewIntent(Map? intentData) {