Skip to content

[TDNoticeBar] 鸿蒙端文字显示不全 #818

@Gavineil

Description

@Gavineil

tdesign-flutter 版本

0.2.6

重现链接

No response

重现步骤/代码

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! [!] Flutter (Channel [user-branch], 3.32.4-ohos-0.0.1, on Microsoft Windows [版本 10.0.26200.7309], locale zh-CN) [368ms] ! Flutter version 3.32.4-ohos-0.0.1 on channel [user-branch] at D:\fvm\default Currently on an unknown channel. Run flutter channelto switch to an official channel. If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup. ! Warning:flutteron your path resolves to D:\fvm\versions\3.32.4-ohos-0.0.1\bin\flutter, which is not inside your current Flutter SDK checkout at D:\fvm\default. Consider adding D:\fvm\default\bin to the front of your path. ! Warning:dart` on your path resolves to D:\fvm\versions\3.32.4-ohos-0.0.1\bin\dart, which is not inside your
current Flutter SDK checkout at D:\fvm\default. Consider adding D:\fvm\default\bin to the front of your path.
• Upstream repository https://gitcode.com/openharmony-tpc/flutter_flutter.git
• FLUTTER_GIT_URL = https://gitcode.com/openharmony-tpc/flutter_flutter.git
• Framework revision 0cd21331bc (2 days ago), 2025-11-20 21:03:35 +0800
• Engine revision 8cd19e509d
• Dart version 3.8.1
• DevTools version 2.45.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.

[✓] HarmonyOS toolchain - develop for HarmonyOS devices
• OpenHarmony Sdk at D:\Huawei\DevEco Studio\sdk, available api versions has [21:default]
• Ohpm version 6.0.1
• Node version v20.19.5
• Hvigorw binary at D:\Huawei\DevEco Studio\tools\hvigor\bin\hvigorw

[✓] Windows Version (11 企业版 64-bit, 25H2, 2009) [2.5s]

[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0-rc1) [2.4s]
• Android SDK at D:\Android\Sdk
• Platform android-36, build-tools 36.1.0-rc1
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
• All Android licenses accepted.

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

[✓] Visual Studio - develop Windows apps (Visual Studio 生成工具 2022 17.14.16) [112ms]
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
• Visual Studio 生成工具 2022 version 17.14.36518.9
• Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2025.1.2) [18ms]
• Android Studio at C:\Program Files\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
• Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)

[✓] IntelliJ IDEA Ultimate Edition (version 2025.3) [17ms]
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2025.3
• 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

[✓] VS Code, 64-bit edition (version 1.106.3) [16ms]
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (5 available) [2.1s]
• 2210132C (mobile) • 3f5aca9c • android-arm64 • Android 15 (API 35)
• 127.0.0.1:5555 (mobile) • 127.0.0.1:5555 • ohos-x64 • Ohos OpenHarmony-6.0.1.112 (API 21)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [版本 10.0.26200.7309]
• Chrome (web) • chrome • web-javascript • Google Chrome 142.0.7444.176
• Edge (web) • edge • web-javascript • Microsoft Edge 143.0.3650.66`

期望结果

文字居中显示

Image

实际结果

Image

Flutter版本

No response

设备与机型信息

OpenHarmony

系统版本

6.01

补充说明

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions