使用Theme

1
2
3
4
5
6
7
Theme(
data: Theme.of(context).copyWith(
// background color
canvasColor: Colors.black
)),
child: BottomNavigationBar(),
)