providers moved to top level
This commit is contained in:
parent
026c3a9f59
commit
cb61fa2de7
|
|
@ -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<Home> with SingleTickerProviderStateMixin {
|
|||
body: TabBarView(
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
controller: _tabController,
|
||||
children: [
|
||||
const News(),
|
||||
const Statictics(),
|
||||
ChangeNotifierProvider<RadarState>(
|
||||
create: (context) => RadarState(),
|
||||
child: const Radar(),
|
||||
),
|
||||
const Studio(),
|
||||
const Profile(),
|
||||
children: const [
|
||||
News(),
|
||||
Statictics(),
|
||||
Radar(),
|
||||
Studio(),
|
||||
Profile(),
|
||||
],
|
||||
),
|
||||
bottomNavigationBar: Consumer<HomeState>(
|
||||
|
|
|
|||
Loading…
Reference in New Issue