@overrideWidget build(BuildContext context) {//TODO:implement buildreturnScaffold( appBar: AppBar( title:newText("Tab App."), ), drawer: sideDrawer(), bottomNavigationBar: bottomTabBar() ); }//Bottom Tab BarWidget bottomTabBar(){returnnewTabBarView( children:[newContainer( color: Colors.yel...
TabBar( padding: const EdgeInsets.only(top: 5), controller: _tabController, labelPadding: const EdgeInsets.symmetric(horizontal: 20), isScrollable: true, unselectedLabelColor: Theme.of(context).focusColor.withOpacity(0.7), tabs: _tabs.keys.toList(), ), ), ),), body: TabBarView( controll...
state: ScaffoldState#5861e(tickers: tracking 2 tickers)The ownership chainforthe affected widget is:"Scaffold-[<'home_page'>] ← _TabControllerScope ← DefaultTabController ← _App ← [root]"No MediaQuery ancestor could be found starting from the context that was passed to MediaQuery.of(). T...
TickerProviderStateMixin{lateTabController _tabController;@overridevoidinitState() {super.initState(); _tabController = TabController(length:5, vsync:this); }@overridevoiddispose() {super.dispose(); _tabController.dispose(); }@overrideWidget build(BuildContext context) {returnScaffold( body: TabBarView...