gpt4 book ai didi

flutter - fontAwesome 图标在我的 flutter 应用程序中不起作用

转载 作者:行者123 更新时间:2023-12-03 09:47:00 26 4
gpt4 key购买 nike

我目前正在做一个副项目,当我在我的应用程序中包含一个字体很棒的图标时,它没有显示出来,而是一个空白框,两条线像字母 x 一样相互交叉,如何解决这个问题?

class ImageHoldingComponent extends StatefulWidget {
@override
_ImageHoldingComponentState createState() =>
_ImageHoldingComponentState();

}
class _ImageHoldingComponentState extends State<ImageHoldingComponent> {
@override
Widget build(BuildContext context) {
return Container(
child: Icon(FontAwesomeIcons.python)
);
}
}

最佳答案

font_awesome_flutter作者包建议following图标未显示问题的任何人的步骤:

  • 停止应用
  • 在您的应用程序目录中运行 flutter clean
  • 从您的模拟器/模拟器/设备中删除应用程序
  • 重建和部署应用程序。

  • 还要确保设置 uses-material-designtrue在 pubspec.yaml 文件中。

    关于flutter - fontAwesome 图标在我的 flutter 应用程序中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57416512/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com