51 lines
1.4 KiB
Dart
51 lines
1.4 KiB
Dart
import 'src/classes/constents.class.dart';
|
|
import 'src/platform/platform_functions.dart';
|
|
|
|
import 'package:flutter/gestures.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'src/classes/functions.class.dart';
|
|
import 'src/classes/routes.class.dart';
|
|
|
|
// void main() async {
|
|
// WidgetsFlutterBinding.ensureInitialized();
|
|
// PlatformFunctions.init();
|
|
// await initializeProviders();
|
|
|
|
// runApp(const MyApp());
|
|
// }
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GetMaterialApp(
|
|
title: 'Dashboard',
|
|
debugShowCheckedModeBanner: false,
|
|
getPages: appRoutes,
|
|
initialRoute: appRoutes.first.name,
|
|
scrollBehavior: const MaterialScrollBehavior().copyWith(
|
|
dragDevices: {
|
|
PointerDeviceKind.mouse,
|
|
PointerDeviceKind.touch,
|
|
PointerDeviceKind.stylus,
|
|
PointerDeviceKind.unknown
|
|
},
|
|
),
|
|
theme: ThemeData(
|
|
colorScheme: ColorScheme.fromSeed(seedColor: primaryColor).copyWith(
|
|
surfaceTint: Colors.transparent,
|
|
),
|
|
textSelectionTheme: TextSelectionThemeData(
|
|
cursorColor: primaryColor,
|
|
selectionColor: primaryColor.withOpacity(.3),
|
|
),
|
|
useMaterial3: true,
|
|
textTheme: GoogleFonts.poppinsTextTheme(),
|
|
),
|
|
);
|
|
}
|
|
}
|