bottomNavigationBar: new BottomNavigationBar(items: [
new BottomNavigationBarItem(icon: new Icon(Icons.account_balance))]),
我跑步时出现此错误
答案 0 :(得分:0)
错误提示,底部导航栏中需要2个或更多项目。这个想法是,如果您有一个导航栏,则应该有多个项目可以导航。如果您只希望一项不使用var wow = new WOW({
live: false
});
答案 1 :(得分:0)
您的items
至少需要有2个孩子,例如:
bottomNavigationBar: BottomNavigationBar(
items: [
BottomNavigationBarItem(
icon: Icon(Icons.account_balance),
),
BottomNavigationBarItem(
icon: Icon(Icons.account_circle),
),
],
)