init
This commit is contained in:
commit
e833bcaec4
224 files changed
+11812
No files matched your search
@@ -0,0 +1,52 @@
|
||||
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(),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user