2024-03-09 17:13:48 +08:00
|
|
|
import 'package:autosos_flutter/config/theme_colors.dart';
|
2024-02-21 22:41:22 +08:00
|
|
|
import 'package:autosos_flutter/pages/home/home_page.dart';
|
2024-03-07 18:00:47 +08:00
|
|
|
import 'package:autosos_flutter/pages/login/login_page.dart';
|
2024-02-18 22:12:08 +08:00
|
|
|
import 'package:flutter/material.dart';
|
2024-03-09 14:28:23 +08:00
|
|
|
import 'package:flutter_easyloading/flutter_easyloading.dart';
|
2024-03-09 17:13:48 +08:00
|
|
|
import 'package:shared_preferences/shared_preferences.dart';
|
2024-02-18 22:12:08 +08:00
|
|
|
|
|
|
|
void main() {
|
2024-03-09 17:13:48 +08:00
|
|
|
SharedPreferences.setMockInitialValues({});
|
2024-02-18 22:12:08 +08:00
|
|
|
runApp(const MyApp());
|
|
|
|
}
|
|
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
const MyApp({super.key});
|
|
|
|
|
|
|
|
// This widget is the root of your application.
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MaterialApp(
|
2024-03-09 14:28:23 +08:00
|
|
|
title: 'Flutter Demo',
|
|
|
|
theme: ThemeData(
|
2024-03-09 17:13:48 +08:00
|
|
|
colorScheme: ColorScheme.fromSeed(seedColor: ThemeColors.primary),
|
2024-03-09 14:28:23 +08:00
|
|
|
useMaterial3: true,
|
|
|
|
),
|
|
|
|
home: const LoginPage(),
|
|
|
|
builder: EasyLoading.init(),
|
|
|
|
);
|
2024-02-18 22:12:08 +08:00
|
|
|
}
|
|
|
|
}
|