2026-05-27 21:35:27 +03:30
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
|
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
|
|
|
|
|
|
import 'app/router.dart';
|
2026-06-03 07:33:12 +03:30
|
|
|
import 'core/theme/app_theme.dart';
|
2026-05-27 21:35:27 +03:30
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
|
runApp(const ProviderScope(child: MeeziApp()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class MeeziApp extends StatelessWidget {
|
|
|
|
|
const MeeziApp({super.key});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return MaterialApp.router(
|
|
|
|
|
title: 'میزی',
|
|
|
|
|
locale: const Locale('fa'),
|
|
|
|
|
supportedLocales: const [Locale('fa'), Locale('ar'), Locale('en')],
|
|
|
|
|
localizationsDelegates: const [
|
|
|
|
|
GlobalMaterialLocalizations.delegate,
|
|
|
|
|
GlobalWidgetsLocalizations.delegate,
|
|
|
|
|
GlobalCupertinoLocalizations.delegate,
|
|
|
|
|
],
|
2026-06-03 07:33:12 +03:30
|
|
|
theme: MeeziTheme.light(),
|
|
|
|
|
darkTheme: MeeziTheme.dark(),
|
|
|
|
|
themeMode: ThemeMode.light,
|
2026-05-27 21:35:27 +03:30
|
|
|
routerConfig: appRouter,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|