-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.dart
41 lines (34 loc) · 862 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'core/initialization.dart';
import 'pages/begin/presentation/pages/begin_page.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await init();
runApp(
const ProviderScope(
child: MyApp(),
),
);
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Wallet',
theme: ThemeData(
primaryColor: Colors.green.shade800,
),
home: const BeginPage(),
debugShowCheckedModeBanner: false,
);
}
}
void showToast({required String msg}) {
Fluttertoast.showToast(
msg: msg,
gravity: ToastGravity.CENTER,
);
}