Repository navigation
Description
Steps to reproduce
I've put a repro up in https://github.com/geokala/flutterpainterbug
When one tries to create an overlay with a painted 'hole' (a lighter area where one can see through the overlay, as in https://pub.dev/packages/app_tutorial), there is no lighter area appearing on web browsers in my testing.
I've not observed any obvious errors being reported.
Expected results
When running the app from the linked repo, either on desktop or web, and clicking 'Show transparency with a hole', most of the screen should be dark with one lighter hole.
Actual results
On desktop this seems to work.
On web (chromium+firefox), there is only the dark overlay.
Code sample
Code sample
https://github.com/geokala/flutterpainterbugScreenshots or Video
Will be attached shortly.
Logs
Logs
flutter create --platforms=linux .
flutter run lib/main.dart -d linux
flutter run lib/main.dart -d web-serverFlutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.1, on Ubuntu 22.04.4 LTS 6.5.0-35-generic, locale en_GB.UTF-8)
• Flutter version 3.22.1 on channel stable at /tmp/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision a14f74ff3a (2 weeks ago), 2024-05-22 11:08:21 -0500
• Engine revision 55eae6864b
• Dart version 3.4.1
• DevTools version 2.34.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /home/talkur/Android/Sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /home/talkur/Android/Sdk/android-studio/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 14.0.0-1ubuntu1.1
• cmake version 3.22.1
• ninja version 1.10.1
• pkg-config version 0.29.2
[✓] Android Studio (version 2023.2)
• Android Studio at /home/talkur/Android/Sdk/android-studio
• Flutter plugin version 78.4.1
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (version 1.86.2)
• VS Code at /usr/share/code
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
• Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.4 LTS 6.5.0-35-generic
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Activity
geokala commentedon Jun 5, 2024
Screenshot from chromium


Screenshot from firefox
Screenshot of correct behaviour from desktop (linux):

huycozy commentedon Jun 6, 2024
Thanks for the report. I can reproduce this. The issue is reproduced with canvaskit renderer only. With HTML renderer, there is an error
combinePaths not implemented in HTML renderer.I bring the main sample code from your GitHub repository here so that others can look at it quickly:
Sample code
flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.22.1, on macOS 14.1 23B74 darwin-x64, locale en-VN) • Flutter version 3.22.1 on channel stable at /Users/huynq/Documents/GitHub/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision a14f74ff3a (13 days ago), 2024-05-22 11:08:21 -0500 • Engine revision 55eae6864b • Dart version 3.4.1 • DevTools version 2.34.3 [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/huynq/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users/huynq/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.3) • Xcode at /Applications/Xcode15.3.app/Contents/Developer • Build 15E204a • CocoaPods version 1.15.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2023.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • android-studio-dir = /Applications/Android Studio.app/ • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160) [✓] VS Code (version 1.89.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.90.0 [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 14.1 23B74 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 125.0.6422.142 [✓] Network resources • All expected network resources are available. • No issues found!geokala commentedon Jun 6, 2024
@huycozy Great, good to hear.
I was doing some more poking around yesterday and did find that one of the three stages of the app_tutorial example successfully paints a 'hole'.
Said example can be found here: https://github.com/aikenahac/app_tutorial/tree/master/example
On my system, the third stage paints a 'hole' at the top left of the screen, but even poking more around that, I couldn't figure why that one worked and the others (and simplified example) didn't.
LimaneGaya commentedon Jun 6, 2024
I have been tinkering with this and i found out that:
As long as one of them intersect the border the others will be visible
This works
This doesn't
@geokala until this issue is fixed you could try this change by adding a small circle at one corner and see if it works (it works for me) like i put bellow.
code
geokala commentedon Jun 7, 2024
@LimaneGaya Thanks for the workaround. I'm buried in something else today but I'll give that a try likely monday and let you know!
geokala commentedon Jun 10, 2024
@LimaneGaya That does indeed appear to work for me as well, on both the POC code and on the original app_tutorial code too.
Workaround for painter bug to show holes on web
zhxst commentedon Jul 5, 2024
Same issue here on Android.
sma commentedon Jan 22, 2025
I think, this is the same issue as #124675.
github-actions commentedon Nov 21, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.