app/lib/main.dart

22 lines
No EOL
521 B
Dart

import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
import 'package:easy_learn/view/screens/list_contents.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 MaterialApp(
home: ListContents()
);
}
}