app/lib/main.dart

22 lines
521 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-15 16:22:20 +02:00
import 'package:easy_learn/view/screens/list_contents.dart';
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) {
return MaterialApp(
2021-08-15 16:22:20 +02:00
home: ListContents()
2021-08-15 13:20:24 +02:00
);
}
2021-08-15 16:22:20 +02:00
}