Skip to content
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

[Bug report] 宽度改变时 自定义的TextOverflowWidget显示问题 #162

Open
jingjiangxiaojian opened this issue Mar 21, 2024 · 1 comment

Comments

@jingjiangxiaojian
Copy link

Version

13.0.0

Platforms

dart, Android, iOS, macOS, Web, Windows, Linux

Device Model

windows android

flutter info

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[!] Flutter (Channel stable, 3.19.3, on Microsoft Windows [版本 10.0.22631.3296], locale zh-CN)
    • Flutter version 3.19.3 on channel stable at C:\Users\jjxia\fvm\default
    ! Warning: `flutter` on your path resolves to D:\fvm\3.19.3\bin\flutter, which is not inside your current Flutter SDK checkout at C:\Users\jjxia\fvm\default. Consider adding C:\Users\jjxia\fvm\default\bin to the front of your
      path.
    ! Warning: `dart` on your path resolves to D:\fvm\3.19.3\bin\dart, which is not inside your current Flutter SDK checkout at C:\Users\jjxia\fvm\default. Consider adding C:\Users\jjxia\fvm\default\bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ba39319843 (2 weeks ago), 2024-03-07 15:22:21 -0600
    • Engine revision 2e4ba9c6fb
    • Dart version 3.3.1
    • DevTools version 2.31.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc3)
    • Android SDK at D:\Android\Sdk
    • Platform android-34, build-tools 34.0.0-rc3
    • Java binary at: D:\Android\Android Studio Hedgehog\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

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

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.6)
    • Visual Studio at D:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34221.43
    • Windows 10 SDK version 10.0.22000.0

[!] Android Studio (version 2022.2)
    • Android Studio at D:\Android\Android Studio
    • 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
    X Unable to determine bundled Java version.
    • Try updating or re-installing Android Studio.

[√] Android Studio (version 2023.1)
    • Android Studio at D:\Android\Android Studio Hedgehog
    • 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
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] Connected device (4 available)
    • Pixel 4 (mobile)  • 9B061FFAZ003L5 • android-arm64  • Android 13 (API 33)
    • Windows (desktop) • windows        • windows-x64    • Microsoft Windows [版本 10.0.22631.3296]
    • Chrome (web)      • chrome         • web-javascript • Google Chrome 122.0.6261.129
    • Edge (web)        • edge           • web-javascript • Microsoft Edge 122.0.2365.92

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

How to reproduce?

demo 跑windows,窗口宽度变小时TextOverflowWidget出现,再拉大TextOverflowWidget未消失

Logs

No response

Example code (optional)

`ExtendedText(
          basename(file.path).fixAutoLines(),
          maxLines: 1,
          overflowWidget: const TextOverflowWidget(
              position: TextOverflowPosition.middle,
              align:TextOverflowAlign.center,
              child:
          Text('...')),
        ),`

Contact

No response

@zmtzawqlp
Copy link
Member

给 Text 加 key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants