Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom navigatorObserver #32

Open
intraector opened this issue Feb 18, 2020 · 0 comments
Open

Custom navigatorObserver #32

intraector opened this issue Feb 18, 2020 · 0 comments
Labels

Comments

@intraector
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants