Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Avoid FletApp control messing with root app routing #6086

Merged
FeodorFitsner merged 6 commits intomainfrom
flet-app-improvs
Jan 29, 2026
Merged

Avoid FletApp control messing with root app routing #6086
FeodorFitsner merged 6 commits intomainfrom
flet-app-improvs

Conversation

@FeodorFitsner
Copy link
Contributor

@FeodorFitsner FeodorFitsner commented Jan 29, 2026

Summary by Sourcery

Add a local route information provider and adjust routing/session behavior to better support embedded Flet apps while updating responsive layout examples and tests.

New Features:

  • Introduce FletLocalRouteInformationProvider to manage route information locally without interacting with the platform router for embedded apps.

Bug Fixes:

  • Prevent embedded FletApp instances from interfering with the root application's routing and global session cookie.
  • Ensure markdown images respect provided width and height via the sized image builder API.

Enhancements:

  • Adjust responsive row custom breakpoint example to use narrower tablet/desktop breakpoints and smaller card heights for more realistic layouts.

Tests:

  • Update responsive row integration tests to match the new custom breakpoints and viewport sizes for phone, tablet, and desktop scenarios.

Introduces FletLocalRouteInformationProvider to handle routing in embedded Flet apps, ensuring route state is managed locally. Updates page and backend logic to distinguish between embedded and root app modes, preventing global session storage and deep linking bootstrap in embedded contexts.
Adjusted the 'tablet' and 'desktop' breakpoint values in the custom_breakpoint.py example. Updated related integration test to use new breakpoint values and replaced golden image assets to reflect the new breakpoints.
Refreshed the golden image for theme_1_buttons in the macOS color scheme integration tests to reflect recent UI or theme changes.
Reduced the height of cards in the responsive row example from 90 to 60. Updated integration test screenshot dimensions to use 600px height and adjusted widths for consistency. Updated golden images to reflect these changes.
Refactored the Markdown control to use sizedImageBuilder with MarkdownImageConfig for improved image handling, including width and height. Also removed an unnecessary @OverRide annotation from didPushRouteInformation in the route information provider.
@cloudflare-workers-and-pages
Copy link

Deploying flet-examples with  Cloudflare Pages  Cloudflare Pages

Latest commit: b2de0f3
Status: ✅  Deploy successful!
Preview URL: https://122d727a.flet-examples.pages.dev
Branch Preview URL: https://flet-app-improvs.flet-examples.pages.dev

View logs

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 82b7759 into main Jan 29, 2026
16 of 59 checks passed
@FeodorFitsner FeodorFitsner deleted the flet-app-improvs branch January 29, 2026 01:47
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