flet icon indicating copy to clipboard operation
flet copied to clipboard

fix: Ensure consistent `TextStyle` inheritance during button state transitions

Open ndonkoHenri opened this issue 1 month ago • 1 comments

Fix #5620 Fix #5278 Fix #5895

Summary by Sourcery

Improve button text style handling and polish layout, utilities, and documentation across Flutter and Python SDK components.

Bug Fixes:

  • Ensure button text styles resolve with non-inheriting TextStyle across widget states to avoid animation and lerp assertion issues.

Enhancements:

  • Refine Row and ResponsiveRow layout behavior wiring to use higher-level alignment helpers and respect intrinsic height flags directly from control properties.
  • Refactor text utilities by extracting font variation and text decoration parsing into dedicated helpers for reuse and clarity.
  • Tighten pip helper error reporting and exception handling when ensuring Flet-related Python packages are installed.
  • Clarify Lottie, Row, and ResponsiveRow Python API docstrings with concrete examples, alignment constraints, and current feature limitations.
  • Adjust button content construction to reuse prebuilt content widgets instead of rebuilding inline.

Build:

  • Extend Python isort configuration to treat additional Flet packages (desktop and web) as first-party modules.

ndonkoHenri avatar Dec 13 '25 11:12 ndonkoHenri