【问题标题】:Flutter "demo" stump on application在应用程序上颤振“演示”树桩
【发布时间】:2021-07-27 10:44:54
【问题描述】:

我正在使用 Flutter 开发应用程序,并且由于某种原因,一些数字(如:4、%)一直应该出现,因此出现了一个“演示”树桩 (as you can see in the picture bellow):

在调试版和发布版以及 ios 和 android 上都会发生这种情况

颤振医生:

user@users-MacBook-Pro ~ % flutter doctor 
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.17.3, on macOS 11.3.1 20E241, locale en-IL)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
[✓] Android Studio (version 4.2)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

谢谢!!

【问题讨论】:

  • 在终端类型 flutter emulators 上检查是否有任何设备,否则从 andoird studio avd manager 创建

标签: android ios flutter


【解决方案1】:

更新:

有问题的代码sn-p就是这个:

Text('4.65' ,
     style: TextStyle(
     fontFamily: 'Fontspring-coresansar45',
     fontWeight: FontWeight.bold,
     fontSize: 12,
     color: ColorConstants.redColor),
     textAlign: TextAlign.center
)

显然,字体:'Fontspring-coresansar45' 不支持所有数字和字符(例如:4、%)

【讨论】:

    猜你喜欢
    • 2018-11-19
    • 2019-08-01
    • 2018-08-09
    • 1970-01-01
    • 2018-10-19
    • 2021-05-05
    • 1970-01-01
    • 2019-02-01
    • 2022-10-09
    相关资源
    最近更新 更多