bottomNavigationBar: BottomAppBar(
shape: CircularNotchedRectangle(),
notchMargin: 4.0,
child: new Row(
// mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Wrap(
direction: Axis.vertical,
children: [
IconButton(
icon: Icon(
Icons.home_outlined,
color: Colors.grey,
),
onPressed: () => screenIndex(0)),
Text("Home")
]),
IconButton(
icon: Icon(
Icons.history,
color: Colors.grey,
),
onPressed: () => screenIndex(1)),
SizedBox(width: 10),
IconButton(
icon: Icon(
Icons.message,
color: Colors.grey,
),
onPressed: () => screenIndex(3)),
IconButton(
icon: Icon(
Icons.person_outline,
color: Colors.grey,
),
onPressed: () => screenIndex(4)),
],
),
),
这是它当前显示的内容:
我想把文字放在图标的正下方