52 lines
1.5 KiB
Dart
52 lines
1.5 KiB
Dart
import 'dart:ui';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:get/get_navigation/src/root/get_material_app.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:u_vineyard/template/src/classes/constents.class.dart';
|
|
import 'package:u_vineyard/template/src/classes/functions.class.dart';
|
|
import 'package:u_vineyard/template/src/classes/routes.class.dart';
|
|
import 'package:u_vineyard/template/src/platform/platform_functions.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(),
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|