prod206flutter/prod206flutter-front-f/authsec_flutterNewUi/base_project/lib/main.dart

32 lines
806 B
Dart
Raw Normal View History

2024-09-05 05:30:14 +00:00
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'core/utils/size_utils.dart';
import 'routes/app_routes.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
runApp(const MyApp());
}
final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return Sizer(
builder: (context, orientation, deviceType) {
return MaterialApp(
title: 'Base Project',
debugShowCheckedModeBanner: false,
initialRoute: AppRoutes.spalshscreen,
routes: AppRoutes.routes,
);
},
);
}
}