2021-02-02 14:33:23 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_translate/flutter_translate.dart';
|
|
|
|
import 'package:logger/logger.dart';
|
|
|
|
|
|
|
|
import 'app.dart';
|
|
|
|
import 'core/util/logger.dart';
|
|
|
|
import 'locator.dart';
|
|
|
|
|
|
|
|
/// main entry point used to configure log level, locales, ...
|
|
|
|
void main() async {
|
|
|
|
setupLogger(Level.info);
|
|
|
|
setupLocator();
|
|
|
|
|
2022-06-22 22:42:37 +00:00
|
|
|
var delegate = await LocalizationDelegate.create(fallbackLocale: 'en', supportedLocales: ['en', 'en_US']);
|
2021-02-02 14:33:23 +00:00
|
|
|
|
2022-06-22 22:42:37 +00:00
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
2021-02-02 14:33:23 +00:00
|
|
|
runApp(LocalizedApp(delegate, MyApp()));
|
|
|
|
}
|