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

access to RouteAwareStateMixin ? #1113

Open
vptcnt opened this issue Jul 4, 2024 · 3 comments
Open

access to RouteAwareStateMixin ? #1113

vptcnt opened this issue Jul 4, 2024 · 3 comments
Labels
Feedback Requested Waiting for new information from the OP

Comments

@vptcnt
Copy link

vptcnt commented Jul 4, 2024

Describe the bug

Hello,

Is it possible to have access to the mixin RouteAwareStateMixin ? and the others ones ?
The methods didPush, didPop, didChangeTapRoute,... will be working ?

If I try to import the mixin, I do receive a warning :

Import of a library in the 'lib/src' directory of another package.
Try importing a public library that exports this library, or removing the import.

What operating system do you use?

macOS

Information about the installed tooling

No response

Steps to reproduce the issue

import 'package:stacked/src/router/common/route_observer.dart';

Expected behavior

No response

Screenshots

No response

Additional Context

No response

@FilledStacks
Copy link
Contributor

Mmmmm,

What's your usecase, and do you still need this?

@FilledStacks FilledStacks added the Feedback Requested Waiting for new information from the OP label Oct 2, 2024
@vptcnt
Copy link
Author

vptcnt commented Oct 2, 2024

I saw this mixin in your library. I tried to used it with the RouterService to receive the notification did push, ..
But this mixin is not exported.
Do you have an example how to use it? I didn't find any code using it

@FilledStacks
Copy link
Contributor

You're not supposed to use it directly.

If you want to observer the routes you can create a RouteObserver and add it to the routeObservers this will be called every time a path is changed and you can run your custom code for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feedback Requested Waiting for new information from the OP
Projects
None yet
Development

No branches or pull requests

2 participants