31 lines
783 B
Dart
31 lines
783 B
Dart
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
|
|
);
|
|
}
|
|
}
|