8000 I am not sure if this is going to give a bug. · Issue #25358 · flutter/flutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

I am not sure if this is going to give a bug. #25358

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

Closed
XHL-study opened this issue Dec 14, 2018 · 6 comments
Closed

I am not sure if this is going to give a bug. #25358

XHL-study opened this issue Dec 14, 2018 · 6 comments
Labels
a: text input Entering text in a text field or keyboard related problems dependency: skia Skia team may need to help us engine flutter/engine repository. See also e: labels.

Comments

@XHL-study
Copy link
XHL-study commented Dec 14, 2018

Steps to Reproduce

class TextPage extends StatelessWidget {
  TextPage(@required this.title);

  String title;
  final String defTitle = "文字样式";

  Widget _sectionTitle(String title) {
    return new Center(
      heightFactor: 2.6,
      child: new Text("xx控件控件xx文字xx文字",
          style: new TextStyle(
              fontSize: 18.0,
              background: (new Paint()..color = Colors.grey),
              color: Colors.white)),
    );
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build

    return new Scaffold(
        appBar: new AppBar(
          title: new Text(title != null ? title : defTitle),
          centerTitle: true,
        ),
        body: new SingleChildScrollView(
          child: new Center(
            child: new Column(
              children: <Widget>[
                _sectionTitle("控件Text控件".toString()),
                new Text("Hello World ", textAlign: TextAlign.center),
                new Text("Hello World * 4" * 10,
                    maxLines: 2, overflow: TextOverflow.ellipsis),
                new Text("Hello world", textScaleFactor: 1.5),
                new Center(
                  child: new Text("Hello World汉字yinwen",
                      textAlign: TextAlign.center,
                      style: new TextStyle(
                          color: Colors.blueAccent,
                          background: new Paint()..color = Colors.greenAccent,
                          decoration: TextDecoration.underline,
                          decorationStyle: TextDecorationStyle.dotted)),
                )
              ],
            ),
          ),
        ));
  }
}

The bug occurred after using TextStyle.background

  1. image

image

screenshot_2018-12-14-15-24-21-064_com firtflutte

  1. This is the result of running flutter doctor -v.
flutter doctor -v
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17134.376], locale zh-CN)
    • Flutter version 1.0.0 at C:\src\flutter
    • Framework revision 5391447fae (2 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\Administrator\AppData\Local\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = C:\Users\Administrator\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-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 31.2.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 6.0 (API 23) (emulator)

• No issues found!

Logs

@zoechi
Copy link
Contributor
zoechi commented Dec 14, 2018

Please add the output of flutter doctor -v.

@zoechi zoechi added a: text input Entering text in a text field or keyboard related problems waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds framework flutter/packages/flutter repository. See also f: labels. engine flutter/engine repository. See also e: labels. labels Dec 14, 2018
@XHL-study
Copy link
Author

Please add the output of flutter doctor -v.

I added

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 14, 2018
@zoechi zoechi added this to the Goals milestone Dec 14, 2018
@jason-simmons
Copy link
Member

See #24337

I think this is an issue within Skia. In some scenarios, Skia seems to be reordering operations and drawing the background rectangle on top of the text instead of below it

@XHL-study
Copy link
Author

See #24337

I think this is an issue within Skia. In some scenarios, Skia seems to be reordering operations and drawing the background rectangle on top of the text instead of below it

Thanks, I just tested it and it really is like this.

@zoechi zoechi added dependency: skia Skia team may need to help us and removed framework flutter/packages/flutter repository. See also f: labels. labels Dec 16, 2018
@zoechi
Copy link
Contributor
zoechi commented Dec 19, 2018

Duplicate of #24337

@github-actions
Copy link

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 -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: text input Entering text in a text field or keyboard related problems dependency: skia Skia team may need to help us engine flutter/engine repository. See also e: labels.
Projects
None yet
Development

No branches or pull requests

3 participants
0