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

The animation abnormality caused by the Modular.to.pushNamedAndRemoveUntil method. #928

Open
lyf571321556 opened this issue Jan 12, 2024 · 1 comment
Labels
new New issue request attention

Comments

@lyf571321556
Copy link

Describe the bug
When calling the Modular.to.pushNamedAndRemoveUntil method for page navigation, the remaining pages in the page stack exhibit a strange animation during the return operation, behaving in the opposite direction compared to the original animation.

Environment
Add your flutter doctor -v
╰ flutter doctor -v
[✓] Flutter (Channel stable, 3.13.9, on macOS 13.0 22A380 darwin-arm64, locale
zh-Hans-CN)
• Flutter version 3.13.9 on channel stable at /Users/ones/Library/flutter
• Upstream repository git@github.com:flutter/flutter.git
• Framework revision d211f42860 (3 months ago), 2023-10-25 13:42:25 -0700
• Engine revision 0545f8705d
• Dart version 3.1.5
• DevTools version 2.25.0
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn

[✗] Android toolchain - develop for Android devices
• Android SDK at /Users/ones/Library/Android/sdk
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.12.1

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup
for detailed instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 76.3.4
• Dart plugin version 232.9559.10
Add your pubspec.yaml
flutter_modular: 6.3.2

To Reproduce
Modular.to.pushNamed(a)->Modular.to.pushNamed(b)>Modular.to.pushNamed(c)->Modular.to.pushNamedAndRemoveUntil(d,(route)=> route.settings.name==a.routeName)

Expected behavior
A clear and concise description of what you expected to happen.
When closing the page, the animation is from left to right;The animation for displaying pages in the page stack is from right to left
Screenshots
If applicable, add screenshots or videos to help explain your problem.

Uploading c5a54c851b67cf573f168cce5b96f846.mov…

@lyf571321556 lyf571321556 added the new New issue request attention label Jan 12, 2024
@lyf571321556
Copy link
Author

Uploading c5a54c851b67cf573f168cce5b96f846.mov…

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

No branches or pull requests

1 participant