32 lines
806 B
Dart
32 lines
806 B
Dart
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,
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|