Skip to content

Conversation

@FeodorFitsner
Copy link
Contributor

@FeodorFitsner FeodorFitsner commented Jan 1, 2026

Summary by Sourcery

Update Python example gallery and web publishing behavior for Flet 0.80.0, consolidating icon browsers, improving solitaire performance, and refining publish tooling.

New Features:

  • Add a combined icon browser app with tabs for Material and Cupertino icon sets.
  • Expose entrypoint and asset base URLs in patched web index configuration for published apps.

Enhancements:

  • Modernize the icons browser example to support asynchronous UI updates, clipboard integration, and browsing different icon sets.
  • Optimize the declarative solitaire tutorial by memoizing card and slot views and notifying the game state on drag updates and actions.
  • Simplify example dependencies and packaging configuration in pyproject.toml and requirements files to target the latest Flet releases.
  • Adjust the gallery publish script to use the new examples layout, updated tutorial paths, and selectively disable unsupported apps.
  • Improve asset directory resolution in the CLI publish command for more predictable asset copying behavior.

Build:

  • Configure setuptools-based packaging for Python examples and define package discovery for apps, controls, services, tutorials, and cookbook modules.

Deployment:

  • Refine base href handling in web index patching to derive a normalized base URL and propagate it to runtime configuration used by published apps.

Chores:

  • Remove the standalone Cupertino icons browser and layouts footer example from the gallery to reduce redundancy and maintenance overhead.

Replaces direct Flet imports with 'import flet as ft' and updates all references accordingly. Refactors event handlers to use async functions, updates UI control usage to the ft namespace, and improves clipboard and snackbar handling. Increases batch size for icon display and adds UI update delays for better responsiveness.
Updated icons_browser to support both Material and Cupertino icons in a tabbed interface. Removed separate icons_cupertino_browser and layouts/footer apps. Updated requirements and dependencies to use latest flet versions and simplified pyproject.toml.
Configured the build system with setuptools and wheel, and specified package discovery rules for the examples directory. This enables proper packaging and building of the Python example modules.
Changed DIST_PATH from $PWD/python/dist to $PWD/dist and updated all app and tutorial paths to remove the 'python/' prefix. This streamlines the script to match the new directory structure.
Switched the published Solitaire tutorial app to use the declarative version. Also renamed 'solitare-final' to 'solitaire-final' in the declarative tutorial assets and main.py for consistency.
Corrects the way asset directories are resolved in the publish command to use the script directory consistently. Enhances patch_index_html to handle base href and related config values more robustly, ensuring correct base URL and asset path injection in the generated index.html.
Added flet-web to icons_browser requirements and relaxed flet version in todo app. Refactored Solitaire declarative tutorial to use memoized views and callbacks, added missing game.notify() calls, and updated CardView and SlotView to accept a key parameter for improved performance.
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

@cloudflare-workers-and-pages
Copy link

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e016062
Status: ✅  Deploy successful!
Preview URL: https://7dadeeca.flet-docs.pages.dev
Branch Preview URL: https://icon-browser.flet-docs.pages.dev

View logs

@FeodorFitsner FeodorFitsner merged commit b4e98ff into main Jan 1, 2026
28 of 36 checks passed
@FeodorFitsner FeodorFitsner deleted the icon-browser branch January 1, 2026 00:23
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.

2 participants