Skip to content

[Web] CanvasKit Text Color not respected. Regression. #59021

@kunit1

Description

@kunit1

Steps to Reproduce

  1. Run the following using the CanvasKit Backend on Flutter Web
class Sample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: Colors.red,
        child: Text("Hello World", style: TextStyle(color: Colors.white))
      ),
    );
  }
}

Expected results:
image

Actual results:
image

Logs
[√] Flutter (Channel master, 1.19.0-4.0.pre.117, on Microsoft Windows [Version 10.0.18363.836], locale en-CA)
    • Flutter version 1.19.0-4.0.pre.117 at D:\flutter
    • Framework revision ef3b99225f (29 minutes ago), 2020-06-08 17:40:57 -0400
    • Engine revision f581f428e9
    • Dart version 2.9.0 (build 2.9.0-13.0.dev 66e2b22d14)

 
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\kusay\AppData\Local\Android\Sdk
    • Platform android-28, build-tools 28.0.3
    • ANDROID_SDK_ROOT = C:\Users\kusay\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Professional 2019 16.3.7)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional
    • Visual Studio Professional 2019 version 16.3.29424.173
    • Windows 10 SDK version 10.0.17763.0

[!] Android Studio (version 3.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[√] VS Code, 64-bit edition (version 1.45.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.11.0

[√] Connected device (3 available)
    • Windows    • Windows    • windows-x64    • Microsoft Windows [Version 10.0.18363.836]
    • Web Server • web-server • web-javascript • Flutter Tools
    • Chrome     • chrome     • web-javascript • Google Chrome 83.0.4103.61

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions