app/lib/main.dart

23 lines
571 B
Dart
Raw Normal View History

2021-08-15 16:22:20 +02:00
import 'package:flutter/services.dart';
2021-08-15 13:20:24 +02:00
import 'package:flutter/material.dart';
2021-08-18 16:49:48 +02:00
import 'package:easy_learn/view/screens/splash_screen.dart';
2021-08-15 16:22:20 +02:00
2021-08-15 13:20:24 +02:00
void main() {
2021-08-15 16:22:20 +02:00
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]).then((_) {
runApp(const MyApp());
});
2021-08-15 13:20:24 +02:00
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
2021-08-18 16:49:48 +02:00
return const MaterialApp(
2021-08-24 17:18:09 +02:00
home: SplashScreen(),
debugShowCheckedModeBanner: false,
2021-08-15 13:20:24 +02:00
);
}
2021-08-15 16:22:20 +02:00
}