Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mortzaCFT authored Oct 20, 2024
1 parent aaeafaa commit e3b12b2
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import 'package:flutter/material.dart';
import 'package:msf/bindings/bindings.dart';
import 'package:get/get.dart';
import 'package:msf/controllers/ThemeController.dart';
import 'package:msf/screens/HomeScreen.dart';
import 'package:msf/screens/LoginScreen.dart';
import 'package:msf/screens/SettingScreen.dart';
import 'package:msf/screens/WebSiteScreen.dart';
import 'package:msf/utills/theme.dart';
import 'package:msf/utills/translator.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
Get.put(ThemeController());
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Obx(() {
bool isDark = Get.find<ThemeController>().isDark.value;

return GetMaterialApp(
debugShowCheckedModeBanner: false,
translations: Translator(),
initialBinding: MyBindings(),
getPages: [
GetPage(name: '/home', page: () => HomeScreen()),
GetPage(name: '/websites', page: () => Websitescreen()),
GetPage(name: '/setting', page: () => Settingscreen()),
GetPage(name: '/l', page: () => LoginScreen()),
],
initialRoute: '/home',
title: 'ModSec Admin Panel'.tr,
theme: getTheme(isDark),
);
});
}
}

0 comments on commit e3b12b2

Please sign in to comment.