-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.dart
25 lines (22 loc) · 830 Bytes
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:new_project/cubit/CubitAppLogics.dart';
import 'package:new_project/cubit/appcubit_cubit.dart';
import 'package:new_project/dataService.dart';
import 'package:new_project/pages/nav_pages/details_page.dart';
import 'package:new_project/pages/nav_pages/main_page.dart';
import 'package:new_project/pages/welcome_page.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: BlocProvider<AppcubitCubit>(
create: (context) => AppcubitCubit(data: DataServices()),
child: CubitAppLOgics(),
),
theme: ThemeData(primarySwatch: Colors.blue),
);
}
}