1、iconfont

  下载第三方iconfont图标文件,存放在根目录下(<app dir> -> fonts -> iconfont)引入及使用:pubspec.yaml配置

 fonts:
    - family: MyIcons
      fonts:
        - asset: fonts/iconfont/iconfont.ttf

  将字体图标的&#替换成0即可。

BottomNavigationBarItem(
            // icon: Icon(Icons.home, size: 20, color: Colors.grey),
            icon: Icon(IconData(0xe6b7, fontFamily: 'MyIcons'), size: 20, color: Colors.grey),
            activeIcon: Icon(IconData(0xe6b7, fontFamily: 'MyIcons'), size: 20, color: Colors.blue),
            title: Text('首页', style: TextStyle(
              color: _currentIndex == 0 ? _activeColor : _defaultColor
            ))
          ),

  

2、images