Flet 0.85.0 Support
This release upgrades the plugin's target Flet version from 0.84.x to 0.85.x, adding expertise for everything the Flet team shipped in 0.85.0.
Highlights
ft.Router— React Router-like declarative router with nested routes, layout
outlets, dynamic/optional/splat segments with regex constraints, per-route data
loaders, and a mobile view-stack mode (manage_views=True) that produces a list of
Views with native swipe-back gestures, system back-button, andAppBarimplicit back
arrow. New hooks documented:use_route_params,use_route_location,
use_view_path,use_route_outlet,use_route_loader_data,is_route_active.ft.use_dialog()— A reactive hook that portals aDialogControlto the page's
dialog overlay. Preserves Flutter widget identity (TextFieldcursor/focus) across
re-renders via frozen diff. Replaces imperativepage.show_dialog()/
page.pop_dialog()inside@ft.componentfunctions.- New page navigation surface —
page.navigate(route)(sync wrapper around
push_route) andpage.pop_views_until(route, result=...)with its companion
on_views_pop_untilevent. - Screenshots & animations — New
Screenshotcontrol withcapture(), plus
page.take_animation(name, frame_delays_ms, pixel_ratio)for capturing animated
sequences in a single round-trip. Both requirepage.enable_screenshots = True. DragTargetEventmigration —.x,.y, and.offsetdeprecated in 0.85.0
(removal scheduled for 0.88.0). Uselocal_positionandglobal_positioninstead.- Companion extension updates —
flet-video(configurable controls +
take_screenshot()) andflet-audio(AudioRecorderwith PCM16 streaming and
direct upload) coverage added. - Clean Architecture directory model — Recommended layout aligned with the
Flutter Clean Architecture pattern and validated against the production
meetmindFlet app.main.pyandapp.pynow live insidesrc/,
config.pyat the project root, plus richercore/,domain/services/, and
optional feature-specific data subfolders.
Plugin pack changes
- Skills (
flet-app,flet-imperative,flet-extension) updated to Flet 0.85.x. - Agents (
flet-app-builder,flet-extension-builder) updated with 0.85.x rules. - Reference guides updated:
breaking-changes.md,new-controls.md,api-traps.md. /flet-reviewcommand updated with a Flet 0.85.x checklist.- Codex pack (
.agents/skills/*,.codex/*,AGENTS.md) brought to parity with the
Claude pack. - Manifests bumped:
plugin.json,marketplace.json,package.json,pyproject.toml.
Compatibility
- Verified against
flet==0.85.0(Python 3.14, Flutter 3.41.7). - Plugin still works against 0.84.x apps; new APIs are additive, but
DragTargetEvent
property migrations should be applied before upgrading.