You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
This is a great peace of code, thanks for that.
And my question is:
we can use SailorLoggingObserver() for logging purposes, obviously. But I need to use a navigatorObserver to monitor user's movements from screen to screen in order to check if user is currently on chat's screen. So I can mark chat as 'unread' otherwise.
I managed to get this info this way: var screenargs = route.settings.arguments as ArgumentsWrapper;
But in order to do that I need to import: import 'package:sailor/src/models/arguments_wrapper.dart';
And dart analyzer complains:
'Don't import implementation files from another package.
It would be nice to have an observer not only for logging but actually for getting routes' params.
The text was updated successfully, but these errors were encountered:
Hi.
This is a great peace of code, thanks for that.
And my question is:
we can use SailorLoggingObserver() for logging purposes, obviously. But I need to use a navigatorObserver to monitor user's movements from screen to screen in order to check if user is currently on chat's screen. So I can mark chat as 'unread' otherwise.
I managed to get this info this way:
var screenargs = route.settings.arguments as ArgumentsWrapper;
But in order to do that I need to import:
import 'package:sailor/src/models/arguments_wrapper.dart';
And dart analyzer complains:
It would be nice to have an observer not only for logging but actually for getting routes' params.
The text was updated successfully, but these errors were encountered: