BottomAppBarr更改缺口形状的颜色

时间:2020-06-20 21:30:20

标签: android flutter dart

如何更改此部分的颜色?

enter image description here

我的底部栏在这里:

bottomNavigationBar: BottomAppBar(
      shape: CircularNotchedRectangle(),
      elevation: 8,
      child: BottomNavigationBar(
        elevation: 0,
        backgroundColor: Colors.transparent,
        currentIndex: currentIndex,
        onTap: changePage,
        items: <BottomNavigationBarItem>[
        BottomNavigationBarItem(backgroundColor: Colors.orange, icon: Icon(Icons.view_day), activeIcon: Icon(Icons.view_day, color: Colors.orange,), title: Text("Home")),
        BottomNavigationBarItem(backgroundColor: Colors.orange, icon: Icon(Icons.settings), activeIcon: Icon(Icons.settings, color: Colors.orange,), title: Text("Settings"))],
      ),
    ),

1 个答案:

答案 0 :(得分:0)

问题是脚手架背景颜色