Skip to content

v0.6.0

Latest

Choose a tag to compare

@brunobrown brunobrown released this 12 May 02:30

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, and AppBar implicit 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 a DialogControl to the page's
    dialog overlay. Preserves Flutter widget identity (TextField cursor/focus) across
    re-renders via frozen diff. Replaces imperative page.show_dialog() /
    page.pop_dialog() inside @ft.component functions.
  • New page navigation surfacepage.navigate(route) (sync wrapper around
    push_route) and page.pop_views_until(route, result=...) with its companion
    on_views_pop_until event.
  • Screenshots & animations — New Screenshot control with capture(), plus
    page.take_animation(name, frame_delays_ms, pixel_ratio) for capturing animated
    sequences in a single round-trip. Both require page.enable_screenshots = True.
  • DragTargetEvent migration.x, .y, and .offset deprecated in 0.85.0
    (removal scheduled for 0.88.0). Use local_position and global_position instead.
  • Companion extension updatesflet-video (configurable controls +
    take_screenshot()) and flet-audio (AudioRecorder with 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
    meetmind Flet app. main.py and app.py now live inside src/,
    config.py at the project root, plus richer core/, 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-review command 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.