Repository navigation
docs: Move example platforms to [tool.flet.gallery] - #7002
Open
ndonkoHenri wants to merge 1 commit into
Open
ndonkoHenri wants to merge 1 commit into
ndonkoHenri wants to merge 1 commit into
Conversation
platforms to [tool.flet.gallery]platforms to [tool.flet.gallery]
Deploying flet-website-v2 with
|
| Latest commit: |
f322f26
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://65d95312.flet-website-v2.pages.dev |
| Branch Preview URL: | https://feat-examples-gallery-platfo.flet-website-v2.pages.dev |
`[tool.flet].platforms` in the examples isn't a Flet setting: flet build and flet run ignore it. It tells the gallery and the docs which platforms an example supports. Under [tool.flet] it looked like a build setting and was copied into projects created from examples. Move it to [tool.flet.gallery].platforms in the 59 examples that set it, read it from there in the docs generator, and point the create-flet-example-projects skill at the new location.
FeodorFitsner
force-pushed
the
feat/examples-gallery-platforms
branch
from
October 27, 2026 19:26
99b979d to
f322f26
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #7000; review that one first. This PR shows only its own commit.
[tool.flet].platformsin the examples'pyproject.tomlisn't a Flet setting:flet buildandflet runignore it. It tells the gallery and the docs which platforms an example supports; the docs use it to hide "Try Online" for examples that don't run on web.Under
[tool.flet], next to real settings likeorgandcompany, it reads like a build setting. It also ends up in the docs'pyproject.tomltab and in every project created withflet create --example, which both strip[tool.flet.gallery]and[tool.flet.metadata]but keep[tool.flet].This PR moves it to
[tool.flet.gallery].platformsin the 59 examples that set it:Two examples without a gallery table (
apps/authentication/github_login_same_pageandgithub_repos_browser) get one. The docs generator reads the new location, and thecreate-flet-example-projectsskill tells agents to write it there.Flet Studio's gallery needs to read
[tool.flet.gallery].platformsbefore this merges. Otherwise it will treat the 59 platform-limited examples as supported everywhere.Testing
pyproject.tomlparses to the same data with onlyplatformsmoved (checked withtomllib).pyproject.tomltabs and a project created withflet create --example controls/core/page/window_resizeno longer containplatforms.Summary by Sourcery
Relocate example platform support metadata to the gallery configuration and update consumers accordingly.
Enhancements:
[tool.flet].platformsto[tool.flet.gallery].platformsacross the affected examples.Tests: