2021-06-19 15:41:19 +00:00
|
|
|
import 'package:app_flowy/startup/startup.dart';
|
2021-10-09 02:09:31 +00:00
|
|
|
import 'package:app_flowy/user/presentation/splash_screen.dart';
|
2021-12-07 17:28:50 +00:00
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
2022-08-08 08:36:26 +00:00
|
|
|
import 'package:hotkey_manager/hotkey_manager.dart';
|
2021-06-19 15:41:19 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2021-09-12 14:19:59 +00:00
|
|
|
class FlowyApp implements EntryPoint {
|
2021-06-19 15:41:19 +00:00
|
|
|
@override
|
|
|
|
Widget create() {
|
2021-09-06 08:18:34 +00:00
|
|
|
return const SplashScreen();
|
2021-06-19 15:41:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-07 17:28:50 +00:00
|
|
|
void main() async {
|
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await EasyLocalization.ensureInitialized();
|
|
|
|
|
2022-08-08 08:36:26 +00:00
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await hotKeyManager.unregisterAll();
|
|
|
|
|
2022-02-20 08:10:50 +00:00
|
|
|
await FlowyRunner.run(FlowyApp());
|
2021-06-19 15:41:19 +00:00
|
|
|
}
|