Skip to content

v2.1.0#46

Merged
basemosama merged 1 commit into
mainfrom
qa
Apr 16, 2026
Merged

v2.1.0#46
basemosama merged 1 commit into
mainfrom
qa

Conversation

@basemosama

Copy link
Copy Markdown
Member

2.1.0

Dependency Updates

  • playx_navigation: ^2.0.0

Navigation Enhancements (playx_navigation 2.0.0)

  • Updated PlayxNavigationSettings.goRouter to accept the new PlayxPageConfig? config parameter, enabling global defaults for:
    • loadingWidget — widget shown while a binding's onEnter is executing.
    • waitForBinding — whether routes block their build on onEnter completion.
    • shellBuilder — persistent page chrome (AppBar, Drawer) rendered immediately during transitions.
    • initTransitionDuration — crossfade animation duration between loading and content states.
  • Updated PlayxMaterialApp and PlayxPlatformApp to forward PlayxPageConfig to PlayxNavigationBuilder, enabling global page configuration when using GoRouter.
  • Route-level settings override global PlayxPageConfig defaults.

Example:

PlayxMaterialApp(
  navigationSettings: PlayxNavigationSettings.goRouter(
    goRouter: myRouter,
    config: PlayxPageConfig(
      loadingWidget: Center(child: CircularProgressIndicator()),
      waitForBinding: false,
      shellBuilder: (context, state, isInitialized, child) => Scaffold(
        appBar: AppBar(title: Text('My App')),
        body: child,
      ),
    ),
  ),
);

- Add PlayxPageConfig? config parameter to PlayxNavigationSettings.goRouter
  for global defaults (loadingWidget, waitForBinding, shellBuilder,
  initTransitionDuration)
- Forward config to PlayxNavigationBuilder in PlayxMaterialApp and
  PlayxPlatformApp
- Bump playx_navigation dependency to ^2.0.0
- Add v2.1.0 changelog entry
@basemosama basemosama merged commit aa36e6a into main Apr 16, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant