app/lib/main.dart
2021-08-18 21:49:48 +07:00

22 lines
No EOL
527 B
Dart

import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
import 'package:easy_learn/view/screens/splash_screen.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]).then((_) {
runApp(const MyApp());
});
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: SplashScreen()
);
}
}