kalismeras61 / flutter_page_transition

This is Flutter Page Transition Package
BSD 2-Clause "Simplified" License
475 stars 57 forks source link

leftToRightJoined: _dependents.isEmpty #57

Open ScottishRoss opened 2 years ago

ScottishRoss commented 2 years ago

I'm getting several errors when attempting to use leftToRightJoined.

case '/set_alarm':
            return PageTransition<dynamic>(
              child: SetAlarmScreen(key: key),
              type: PageTransitionType.leftToRightJoined,
              childCurrent: this,
              settings: settings,
              duration: const Duration(seconds: 1),
            );

I can't seem to find out where this issue is coming from, and it only affects the joined transitions. Any ideas?

kalismeras61 commented 2 years ago

What about removing key value on your SetAlarmScreen screen ?

ScottishRoss commented 2 years ago

It appeared to be a global navigator key that I had for something else. This has been removed as it's no longer needed.

Though whilst it's now working, it appears to be combining the wrong screens. It's combining screens from earlier in the navigation stack. I'm not sure what I'm doing wrong there?

kalismeras61 commented 2 years ago

I can't help without more details. This is the first time I've heard of it, maybe you should try flutter clean and recompile.

ScottishRoss commented 2 years ago

I've tried that I'm afraid. I'm pretty sure it has something to do with the nav stack. Here's a short video of my app from splash screen.

It goes: Splash screen -> Splash Screen (with animation) -> pushNamedAndRemoveUntil -> IntroScreen -> pushNamedAndRemoveUntil -> HomeScreen -> pushNamed (this is the one with the page transition or leftToRightJoined) -> setAlarm.

As you can see in the video you see previous screens from this nav stack, that should be removed?

Video Link

ScottishRoss commented 2 years ago

Is there any other information I can provide to help?