feat(navigation): customizable route transitions + release 7.0.3#1059
Merged
Conversation
Introduce the open PageTransition contract: TransitionType presets now implement it, CustomTransition covers the just-an-animation case, and any PageTransition implementation can own the whole Page. ModularRoute.transition becomes nullable so ModularApp.defaultTransition can act as the fallback (precedence: route-local -> app default -> material). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Re-embed the navigation docs with the reworked Transitions section (PageTransition, CustomTransition, app-wide defaultTransition). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 7.0.3
Bumps flutter_modular → 7.0.3 and ships the route transitions feature.
Both
flutter_modular7.0.3 andflutter_modular_docs_mcp0.2.3 have alreadybeen published to pub.dev.
Customizable route transitions
route(transition:)and the new app-wideModularApp(defaultTransition:)nowaccept any
PageTransition— an open contract that builds the route'sPage.TransitionTypepresets (material,fade,none) — each value nowis a
PageTransition, so existingtransition: TransitionType.fadekeeps working;CustomTransition— inline convenience: pass atransitionsBuilder(samesignature as
PageRouteBuilder) and optionally tuneduration/reverseDuration/opaque/barrierColor/barrierDismissible/fullscreenDialog;PageTransitionyourself for full control of thePage(e.g.
CupertinoPageswipe-back,fullscreenDialog, shared-axis).ModularApp.defaultTransition(defaultmaterial) applies toevery route that doesn't declare its own. Precedence: route-local → app default → material.
route(transition:)now defaults tonull(inherit) instead of forcingmaterial.Docs MCP — 0.2.3
Verification
flutter analyze: clean ·flutter test: 61 passingdart analyze: clean ·dart test: 12 passingCommits
feat(navigation): customizable route transitions with app-wide defaultchore(docs-mcp): release v0.2.3chore: release 7.0.3🤖 Generated with Claude Code