-
Notifications
You must be signed in to change notification settings - Fork 595
v1: Charts and routing examples #5764
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
Conversation
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.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.
There was a problem hiding this 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
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:
Enhancements:
Documentation:
Chores: