app/lib/main.dart
2021-08-24 22:18:09 +07:00

23 lines
No EOL
571 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(),
debugShowCheckedModeBanner: false,
);
}
}