Skip to content

Conversation

@FeodorFitsner
Copy link
Contributor

@FeodorFitsner FeodorFitsner commented Oct 31, 2025

Close #5414
Close #2920

Summary by Sourcery

Revamp routing examples and chart controls with async routing, unified imports, enhanced theming, and new dashboard example

New Features:

  • Add declarative line-chart dashboard example with dynamic Gauge component

Enhancements:

  • Refactor routing-navigation examples to use async push_route and streamlined event handlers
  • Standardize chart examples to import with alias fch and update control references
  • Expose divider_color in Theme and add badge skip_properties support in pie chart sections
  • Improve type hints in use_effect hooks and update default animation curve in ExpansionTile

Documentation:

  • Fix switch control media path in docs and include top-level CONTRIBUTING.md

Chores:

  • Remove obsolete requirements.txt from routing-navigation examples

Introduces a new example for a dashboard using Flet and Flet Charts, displaying CPU, memory, and disk usage as animated line charts. Demonstrates component-based design and real-time data updates for chart visualization.
Updated routing-navigation example apps to use async route handling and push_route instead of go for navigation. Improved view management and event handling, and replaced flet.app with flet.run for app startup. Removed requirements.txt as dependencies are now managed elsewhere.
Moved and updated route_change and view_pop logic in routing-navigation examples for consistency and clarity. Improved example in Page control documentation to use ft.Button, update views, and clarify async usage.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 31, 2025

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 020ebdc
Status:⚡️  Build in progress...

View logs

Added a reference to the main CONTRIBUTING.md file in the Python package documentation to provide contribution guidelines for developers.

Close #5769
Introduces the divider_color property to the Theme class in Python and updates Dart theme parsing to use divider_color from the theme configuration. This allows customization of divider colors in UI components such as Divider, VerticalDivider, ListTile, and DataTable.
Corrected the example_media path in Switch control docs and updated references in ExpansionTile docstrings to use the correct link format and AnimationCurve.EASE_IN instead of Curves.EASE_IN.
Updated docstrings in use_effect.py to clarify argument types and descriptions for hook functions. Improved type annotation for dataclass_kwargs in base_control.py to specify Any type for keyword arguments.
change).
dependencies: If present, fn is only run when one of the dependencies has
changed. If absent, fn is run after every render.
fn (Callable[[], Any | Awaitable[Any]]): A function to run after each
Copy link
Contributor

@ndonkoHenri ndonkoHenri Nov 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to other parts of docs, no need to specify parameter/property types within docstrings.
That of the function definition is sufficient, both for IDEs and website docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, but for some reason, exactly in this place mkdocs is swearing with "not annotated" warning.

@ndonkoHenri ndonkoHenri linked an issue Nov 4, 2025 that may be closed by this pull request
Introduces 'skip_properties' for 'badge' in PieChartSection Python class and updates Dart code to use 'badge' instead of 'badge_content' for widget building. This improves consistency and property management between Python and Dart implementations.
Refactored imports in candlestick, pie, and scatter chart examples to consistently use 'flet_charts as fch' instead of 'ftc'. Updated all references to chart classes and constants accordingly. Also fixed a color constant typo in pie chart example.
@FeodorFitsner FeodorFitsner marked this pull request as ready for review November 5, 2025 22:12
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 6b84074 into main Nov 5, 2025
2 of 16 checks passed
@FeodorFitsner FeodorFitsner deleted the feodor/examples-1 branch November 5, 2025 22:14
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.

The contribution guide is not there anymore Routing: View Pop function showing blank screen skip_route_change_event in page.go() does not work

3 participants