解决在ElevatedButton中使用Icon不显示问题 在ElevatedButton中直接使用icon会导致icon不显示,这时需要在icon加入color样式 ElevatedButton( onPressed: () { Navigator.pushNamed(context, '/DynamicTracking'); }, child: Icon( Icons.my_location, size: 40, color: Colors.red[400], ), ), )