Skip to content

v1: add flet-dev extensions to client #5304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 29 commits into
base: v1
Choose a base branch
from
Open

v1: add flet-dev extensions to client #5304

wants to merge 29 commits into from

Conversation

ndonkoHenri
Copy link
Contributor

@ndonkoHenri ndonkoHenri commented May 14, 2025

Summary by Sourcery

Register flet-dev extensions in the Flutter client and enrich both the Python SDK and Flutter utilities with new types, controls, and parsing enhancements.

New Features:

  • Register multiple Flet Flutter extensions (audio_recorder, geolocator, permission_handler, lottie, map, ads, rive, webview, flashlight, datatable2) in pubspec, main.dart, and platform plugin registrants.
  • Introduce a BorderStyle enum and style support in Python SDK’s BorderSide and update Border and BorderRadius APIs with copy_with, zero/static methods, and arithmetic operators.
  • Add Size and Rect geometry types, along with parsing and utility methods, to the Python SDK.
  • Add SnackBarAction control in Python SDK to enable richly styled and interactive snack bar actions.
  • Enhance Python SDK’s Tooltip with default decoration, wait/exit durations, enable_tap_to_dismiss default, and mouse cursor support.
  • Expose Duration.copy_with, refine Duration arithmetic, and import Number in Python SDK.

Enhancements:

  • Set default shape for BoxDecoration to RECTANGLE and enforce post-init assertions.
  • Update Flutter utility parsers for borders, geometry, and tooltips, and improve DataTable control mapping and naming consistency.
  • Add convenience methods (Padding.zero, Offset.zero) and refine docs and default values across base controls.

@ndonkoHenri ndonkoHenri marked this pull request as draft May 14, 2025 05:40
@ndonkoHenri ndonkoHenri marked this pull request as ready for review June 14, 2025 10:48
@ndonkoHenri
Copy link
Contributor Author

@sourcery-ai review

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

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