Update: 2026-05-06 02:59:42
This commit is contained in:
30
musadaq-app/lib/main.dart
Normal file
30
musadaq-app/lib/main.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'app/routes/app_pages.dart';
|
||||
import 'app/theme/app_theme.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
// TODO: Initialize ObjectBox, SecureStorage, and DioClient here
|
||||
|
||||
runApp(const MusadaqApp());
|
||||
}
|
||||
|
||||
class MusadaqApp extends StatelessWidget {
|
||||
const MusadaqApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GetMaterialApp(
|
||||
title: 'Musadaq',
|
||||
theme: AppTheme.lightTheme,
|
||||
darkTheme: AppTheme.darkTheme,
|
||||
themeMode: ThemeMode.system,
|
||||
initialRoute: AppPages.INITIAL,
|
||||
getPages: AppPages.routes,
|
||||
debugShowCheckedModeBanner: false,
|
||||
locale: const Locale('ar', 'JO'), // Arabic by default
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user