60 lines
1.7 KiB
Dart
60 lines
1.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:rasadyar_app/presentation/routes/app_pages.dart';
|
|
import 'package:rasadyar_core/core.dart';
|
|
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
runApp(MyApp());
|
|
// runApp(DevicePreview(builder: (context) => ForDevicePreview(),));
|
|
}
|
|
|
|
/*class ForDevicePreview extends StatelessWidget {
|
|
const ForDevicePreview({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GetMaterialApp(
|
|
useInheritedMediaQuery: true,
|
|
locale: DevicePreview.locale(context),
|
|
builder: DevicePreview.appBuilder,
|
|
title: 'رصدیار',
|
|
theme: ThemeData(
|
|
colorScheme: ColorScheme.fromSeed(seedColor: AppColor.blueNormal),
|
|
),
|
|
initialRoute: AppPages.initRoutes,
|
|
initialBinding: BindingsBuilder.put(() => UserService()),
|
|
getPages: AppPages.pages,
|
|
);
|
|
}
|
|
}*/
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GetMaterialApp(
|
|
title: 'رصدیار',
|
|
theme: ThemeData(
|
|
fontFamily: 'yekan',
|
|
colorScheme: ColorScheme.fromSeed(seedColor: AppColor.blueNormal),
|
|
),
|
|
initialRoute: AppPages.initRoutes,
|
|
// initialBinding: BindingsBuilder.put(() => UserService()),
|
|
getPages: AppPages.pages,
|
|
locale: const Locale("fa", "IR"),
|
|
supportedLocales: const [
|
|
Locale("fa", "IR"),
|
|
],
|
|
localizationsDelegates: [
|
|
PersianMaterialLocalizations.delegate,
|
|
PersianCupertinoLocalizations.delegate,
|
|
GlobalMaterialLocalizations.delegate,
|
|
GlobalWidgetsLocalizations.delegate,
|
|
GlobalCupertinoLocalizations.delegate,
|
|
],
|
|
);
|
|
}
|
|
}
|