我正在尝试使用mdi导入的图标,而不是flutter提供的常规图标。我试着点击这个链接:Are there any letter icons for flutter(Icons showing a,b,c,d....)?我在pubspec.yaml中编辑了依赖项 dependencies: flutter:
sdk: flutter 和导入的mdi import 'package:mdi/mdi.dart
The goal:我不使用BottomNavigationBar的硬编码高度,而是将其大小作为屏幕高度的一小部分。到目前为止,是我的方法,:我想出了用SizedBox包BottomNavigationBar并控制高度的方法。在船底的密码。The problem:我在各种设备上遇到了大量的BottomNavigationBarItems。final bottomNavHeight = Med