flutter – Failed assertion: line 125 pos 12: ‘assertMidButtonStyles(navBarStyle, items!.length)’

I have some problems while I use persistent_bottom_nav_bar, which is flutter package. What I’m suffering from is same as below: ▽ bottomNav.dart import ‘package:flutter/material.dart’; import ‘package:persistent_bottom_nav_bar/persistent-tab-view.dart’; import ‘package:project1_makers/main.dart’; class bottomNav extends StatelessWidget { PersistentTabController _controller = PersistentTabController(initialIndex: 0); @override Widget build(BuildContext context) { return PersistentTabView( context, controller: _controller, screens: _buildScreens(), items: _navBarsItems(), confineInSafeArea: true, backgroundColor: … Read more