From cb61fa2de78abf47866c1011d19133bfb3b984f2 Mon Sep 17 00:00:00 2001 From: MohammadTaha Basiri Date: Tue, 11 Jan 2022 18:48:17 +0330 Subject: [PATCH] providers moved to top level --- lib/pages/home/home.dart | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/pages/home/home.dart b/lib/pages/home/home.dart index cfb7f07..94fb048 100644 --- a/lib/pages/home/home.dart +++ b/lib/pages/home/home.dart @@ -3,7 +3,6 @@ import 'package:didvan/pages/home/home_state.dart'; import 'package:didvan/pages/home/news/news.dart'; import 'package:didvan/pages/home/profile/profile.dart'; import 'package:didvan/pages/home/radar/radar.dart'; -import 'package:didvan/pages/home/radar/radar_state.dart'; import 'package:didvan/pages/home/statistics/statistics.dart'; import 'package:didvan/pages/home/studio/studio.dart'; import 'package:didvan/pages/home/widgets/bnb.dart'; @@ -36,15 +35,12 @@ class _HomeState extends State with SingleTickerProviderStateMixin { body: TabBarView( physics: const NeverScrollableScrollPhysics(), controller: _tabController, - children: [ - const News(), - const Statictics(), - ChangeNotifierProvider( - create: (context) => RadarState(), - child: const Radar(), - ), - const Studio(), - const Profile(), + children: const [ + News(), + Statictics(), + Radar(), + Studio(), + Profile(), ], ), bottomNavigationBar: Consumer(