Skip to content

Conversation

@FeodorFitsner
Copy link
Contributor

@FeodorFitsner FeodorFitsner commented Dec 23, 2025

Summary by Sourcery

Handle platform deep links at app cold start and ensure they initialize the Flet router with a normalized initial route.

New Features:

  • Add a deep link bootstrap helper to capture and replay initial route information before the Flet router is mounted.
  • Introduce a custom route information provider that normalizes external deep link URIs into Flet's path-based routing format.
  • Expose the deep linking bootstrap utility through the main Flet Dart library API.
  • Add a Python declarative example app demonstrating a dialog-based component with async data loading.

Enhancements:

  • Wire the new route information provider into MaterialApp.router and CupertinoApp.router initialization so initial and subsequent routes use the normalized format.

Introduces a new example app demonstrating a declarative component dialog in Flet. The dialog asynchronously loads user data from an API and displays it, including error handling and loading state.
Introduces FletDeepLinkingBootstrap to capture and replay deep links before the router is ready, and FletRouteInformationProvider to normalize external URIs for routing. Updates page control to use these for improved deep linking support and initial route handling.
Updated FletRouteInformationProvider to only include query and fragment in the URI if they are present, preventing empty values from being set.
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine

@FeodorFitsner FeodorFitsner merged commit 3bcb051 into main Dec 23, 2025
48 of 53 checks passed
@FeodorFitsner FeodorFitsner deleted the deep-linking-fix-2 branch December 23, 2025 04:14
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.

2 participants