forked from Cifruktus/MathTraining
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dart
More file actions
32 lines (27 loc) · 834 Bytes
/
main.dart
File metadata and controls
32 lines (27 loc) · 834 Bytes
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
26
27
28
29
30
31
import 'package:flutter/material.dart';
import 'package:hydrated_bloc/hydrated_bloc.dart';
import 'package:math_training/home/view/home_page.dart';
import 'package:math_training/theme.dart';
import 'package:math_training/widgets/custom_theme.dart';
import 'package:path_provider/path_provider.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
HydratedBloc.storage = await HydratedStorage.build(
storageDirectory: await getTemporaryDirectory(),
);
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return CustomTheme(
data: customThemeData,
child: MaterialApp(
title: 'Flutter Demo',
theme: materialThemeData,
home: MainPage.page(),
),
);
}
}