v2.0.0#10
Merged
Merged
Conversation
BREAKING CHANGE: PlayxRoute and PlayxShellBranch builder signature changed from (context, state) to (context, state, isInitialized). - Add shellBuilder for rendering page chrome immediately during transitions, preventing blank frames while onEnter initializes - Add waitForBinding to control blocking behavior (default: true) - Add initTransitionDuration for smooth crossfade animation between loading and content states via AnimatedSwitcher - Add PlayxPageConfig for global defaults via PlayxNavigationBuilder - Config resolution: route-level > global PlayxPageConfig > defaults - Bump version to 2.0.0
- Upgraded `go_router` dependency from `^17.1.0` to `^17.2.1`. - Updated example package version to `2.0.0`. - Refined code formatting in `PlayxPage` and `PlayxNavigationBuilder` for better consistency.
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.
2.0.0
Breaking Changes
PlayxRouteandPlayxShellBranchnow usePlayxRouteWidgetBuilderwhich includes anisInitializedparameter:New Features
shellBuilderparameter toPlayxRoute,PlayxShellBranch, andPlayxPageConfig. The shell (AppBar, Drawer, Scaffold) renders immediately during navigation transitions, preventing blank frames. Only the body content waits for the binding'sonEnterto complete.waitForBindingparameter toPlayxRoute,PlayxShellBranch, andPlayxPageConfig. When set tofalse, the page renders immediately withisInitialized = falsewhileonEnterruns in the background.PlayxPageConfig: Addedconfigparameter toPlayxNavigationBuilderto set global defaults forloadingWidget,waitForBinding, andshellBuilder. Individual routes can override any of these settings.PlayxRouteWidgetBuilderandPlayxShellWidgetBuilderfor type-safe builder signatures.initTransitionDurationparameter toPlayxRoute,PlayxShellBranch, andPlayxPageConfig. When set, anAnimatedSwitchercrossfade smoothly transitions from the loading widget to the page content.Configuration Resolution
Route-level parameter → Global
PlayxPageConfig→ Built-in default:loadingWidget: Route > Global >SizedBox.shrink()waitForBinding: Route > Global >trueshellBuilder: Route > Global >nullinitTransitionDuration: Route > Global >null(no animation)