// 改变 int _currentSelectedIndex 变量的状态
_currentSelectedIndex = index;
});...(
// 默认状态下的图标
icon: Icon(Icons.home, color: Colors.grey,),
// 激活状态下的图标...],
),
),
],
),
// 刷新时回调的方法...// 改变 int _currentSelectedIndex 变量的状态
_currentSelectedIndex = index;
});...(
// 默认状态下的图标
icon: Icon(Icons.home, color: Colors.grey,),
// 激活状态下的图标