Skip to content

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

@lyf571321556

Description

@lyf571321556

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…

Metadata

Metadata

Assignees

No one assigned

    Labels

    newNew issue request attention

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions