From 27a8fdcb80d7a72350beed45a0cd05abddda2677 Mon Sep 17 00:00:00 2001 From: ndonkoHenri Date: Tue, 18 Aug 2026 18:29:14 +0200 Subject: [PATCH 1/4] fix: preserve CupertinoBottomSheet content transparency --- packages/flet/lib/src/controls/cupertino_bottom_sheet.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flet/lib/src/controls/cupertino_bottom_sheet.dart b/packages/flet/lib/src/controls/cupertino_bottom_sheet.dart index c4801283a3..50ae97f7e5 100644 --- a/packages/flet/lib/src/controls/cupertino_bottom_sheet.dart +++ b/packages/flet/lib/src/controls/cupertino_bottom_sheet.dart @@ -57,7 +57,7 @@ class _CupertinoBottomSheetControlState ); } - return Material(child: child); + return Material(type: MaterialType.transparency, child: child); } @override From 5e5efed1a9ed5ac77ae58b1118dd87d6b1f26fae Mon Sep 17 00:00:00 2001 From: ndonkoHenri Date: Tue, 18 Aug 2026 18:29:33 +0200 Subject: [PATCH 2/4] docs: add 1.0.0 changelog entry for CupertinoBottomSheet fix --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddebec747d..c5a03e287b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.0.0 + +### Bug fixes + +* Fix `CupertinoBottomSheet` painting an opaque rectangular background behind custom content, which obscured rounded corners and transparent padding. Its `Material` wrapper is now transparent while preserving normal text styling ([#4761](https://github.com/flet-dev/flet/issues/4761)) by @ndonkoHenri. + ## 0.86.7 ### Bug fixes From 4dad5a16a2596a06b8dc156895875c3c6e9b95e2 Mon Sep 17 00:00:00 2001 From: ndonkoHenri Date: Tue, 18 Aug 2026 18:53:34 +0200 Subject: [PATCH 3/4] fix(templates): let generated tests import app modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The app template ships a `tests/` directory, but nothing placed the app's `src/` on `sys.path`: the `flet` pytest plugin only inserts it when `FLET_TEST_APP_PATH` is set, which nothing sets. The generated test passed regardless, because it drives the app on-device through the `flet_app` fixture and never imports app code — so the gap surfaced only once a module was added next to `main.py` and given a plain unit test, which failed collection with `ModuleNotFoundError`. Set `pythonpath = ["src"]` in the generated `[tool.pytest.ini_options]`, matching `[tool.flet.app].path`, so tests import app modules the same way the app itself does — no `conftest.py`, no editable install, and no `[build-system]` in an app that is not a distributable package. Also drop the stale `storage/` entry from the generated `.gitignore`: dev-mode app storage has lived in `.flet/storage/{data,cache,temp}` since 0.86, covered by the `.flet/` entry above it and by the `.gitignore` that `flet run` writes inside `.flet/` itself. --- sdk/python/templates/app/app/{{cookiecutter.out_dir}}/.gitignore | 1 - .../templates/app/app/{{cookiecutter.out_dir}}/pyproject.toml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/templates/app/app/{{cookiecutter.out_dir}}/.gitignore b/sdk/python/templates/app/app/{{cookiecutter.out_dir}}/.gitignore index dc5254c056..726bb60449 100644 --- a/sdk/python/templates/app/app/{{cookiecutter.out_dir}}/.gitignore +++ b/sdk/python/templates/app/app/{{cookiecutter.out_dir}}/.gitignore @@ -18,7 +18,6 @@ env/ # Flet .flet/ build/ -storage/ # IDE .idea/ diff --git a/sdk/python/templates/app/app/{{cookiecutter.out_dir}}/pyproject.toml b/sdk/python/templates/app/app/{{cookiecutter.out_dir}}/pyproject.toml index 09a0e12e24..7f7a392083 100644 --- a/sdk/python/templates/app/app/{{cookiecutter.out_dir}}/pyproject.toml +++ b/sdk/python/templates/app/app/{{cookiecutter.out_dir}}/pyproject.toml @@ -24,6 +24,7 @@ dev = [ [tool.pytest.ini_options] asyncio_mode = "auto" testpaths = ["tests"] +pythonpath = ["src"] [tool.flet] {%- if cookiecutter.platform == "linux" %} From f74830b10b82eb3e5a8c7ffec838d3be6fb7a090 Mon Sep 17 00:00:00 2001 From: ndonkoHenri Date: Tue, 18 Aug 2026 18:57:04 +0200 Subject: [PATCH 4/4] docs: link CupertinoBottomSheet fix PR in changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5a03e287b..f74c5bb22b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ### Bug fixes -* Fix `CupertinoBottomSheet` painting an opaque rectangular background behind custom content, which obscured rounded corners and transparent padding. Its `Material` wrapper is now transparent while preserving normal text styling ([#4761](https://github.com/flet-dev/flet/issues/4761)) by @ndonkoHenri. +* Fix `CupertinoBottomSheet` painting an opaque rectangular background behind custom content, which obscured rounded corners and transparent padding. Its `Material` wrapper is now transparent while preserving normal text styling ([#4761](https://github.com/flet-dev/flet/issues/4761), [#6780](https://github.com/flet-dev/flet/pull/6780)) by @ndonkoHenri. ## 0.86.7