Skip to content

[web] Transform values are not rendered properly while painting layout / box type widgets #55031

@joshuadeguzman

Description

@joshuadeguzman

Issue

I'm trying to port one of my example apps from this repo to Codepen. I tried to apply some transform values around the Container, Column and similar layout / box type widgets, and they do not seem to be rendered properly in web using Chrome. So I applied a hotfix. I tried adding Opacity to see if these widgets will repaint as needed, and it did.

I'm aware that performance is somehow sacrificed using this hotfix as it is a very expensive approach (i.e. re-drawing Opacity instead of using AnimatedOpacity), but at least it works fine for now to showcase the demo.

Let me know your thoughts on this one.

PS. Works fine on iOS.

Steps to Reproduce

  1. Visit https://dartpad.dev/91778fe91993a4e1ec5be74d5d2d5a45
  2. Scroll the items from right to left

Expected results:

Container, Column and similar layout / box type widgets should adjust (a.k.a. transform) based on the provided transform values.

Demo (w/ hotfix):
Wrap one child of the Transform using Opacity widget with an opacity value of 0.99. Please search "hotfix".
https://dartpad.dev/bf4a7535a214e7ed4bbcbc50448f8e4a

Attachment

Web | iOS

|

Actual results:

Widgets do not seem to be rendered / transformed correctly as I scroll through the list of items.

Demo:
https://dartpad.dev/91778fe91993a4e1ec5be74d5d2d5a45

Attachment:

Logs flutter doctor -v

[✓] Flutter (Channel unknown, v1.12.13+hotfix.6, on Mac OS X 10.14.6 18G103, locale en-PH)
• Flutter version 1.12.13+hotfix.6 at /Users/joshuadeguzman/Documents/Tools/flutter
• Framework revision 18cd7a3 (4 months ago), 2019-12-11 06:35:39 -0800
• Engine revision 2994f7e
• Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/joshuadeguzman/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/joshuadeguzman/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/joshuadeguzman/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.0, Build version 11A420a
• CocoaPods version 1.8.4

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 36.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.2.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 43.0.2
• Dart plugin version 192.7761

[✓] VS Code (version 1.44.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.9.1

[✓] Connected device (2 available)
• Chrome • chrome • web-javascript • Google Chrome 81.0.4044.113
• Web Server • web-server • web-javascript • Flutter Tools

• No issues found!

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: animationAnimation APIsc: renderingUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine related. See also e: labels.found in release: 1.22Found to occur in 1.22frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions