stacked icon indicating copy to clipboard operation
stacked copied to clipboard

access to RouteAwareStateMixin ?

Open vptcnt opened this issue 1 year ago • 3 comments

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

vptcnt avatar Jul 04 '24 17:07 vptcnt

Mmmmm,

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

FilledStacks avatar Oct 02 '24 13:10 FilledStacks

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

vptcnt avatar Oct 02 '24 14:10 vptcnt

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.

FilledStacks avatar Oct 04 '24 10:10 FilledStacks