-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Problem with Stack -> "ImageAsset + CustomPainter" with web-renderer html #110070
Problem with Stack -> "ImageAsset + CustomPainter" with web-renderer html #110070
Comments
Hello @RocksteadyDog. Your sample code contains an image that is not part of the zip archive. Could you share a minimal, reproducible example in the form of a repo? |
Hello! Done. flutter_bug.zip |
I can reproduce this issue with stable and master. When the app loads when using HTML, it renders correctly for a first few frames before distorting.
|
Addition, if you remove ImageAsset from the container and just add color to the container, everything works fine |
the 5 lines that did not get rendered are because negative Offsets were passed through. We attempt to set an svg width and height as the area to draw our line here, but it isn't possible to set a negative height and width for svg so those lines don't get drawn. |
@RocksteadyDog I completely missed that in the provided repro code, the |
Thank you. It's works. |
reopening because some internal tests failed |
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 |
Steps to Reproduce
Run the code written below with --web-renderer html
flutter run -d Chrome -web-renderer html
Look at the "GameBoard" -> Stack widget,
If you run it with --web-renderer html, CustomPainter doesn't render the lines completely. But with --web-renderer canvaskit everything is fine
Code:
main.zip
Expected results:
Look at the screenshot "CanvasKit"
Actual results:
Look at the screenshot "HTML"
Screenshots
HTML:
![HTML](https://user-images.githubusercontent.com/29661837/186128822-9ec0effa-de66-4a42-8e5e-0c8c45b0f31e.png)
CANVASKIT:
![CanvasKit](https://user-images.githubusercontent.com/29661837/186128832-d81b54e6-4bab-4266-9748-df4dae5e588b.png)
Image Asset
![eg](https://user-images.githubusercontent.com/29661837/186128719-7cc5aa89-9e4c-415c-9a2f-dc42bef41e1d.jpg)
Flutter doctor
The text was updated successfully, but these errors were encountered: