// ignore_for_file: must_be_immutable import 'dart:ui'; import 'package:flutter/material.dart'; // import 'package:flutter_animator/flutter_animator.dart'; import 'package:get/get.dart'; import 'package:vrouter/vrouter.dart'; import 'package:flutter_animate/flutter_animate.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import '../theme.dart'; class FikoApp extends StatelessWidget { FikoApp({super.key, required this.routes}); List routes = []; // This widget is the root of your application. @override Widget build(BuildContext context) { return VRouterScope( child: GetMaterialApp.router( title: 'FikoYT App', routerDelegate: VRouterDelegate( buildTransition: (animation, secondaryAnimation, child) { return child.animate( effects: FikoThemeConstants.defaultPageAnimation); }, routes: routes, initialUrl: "/", ), routeInformationParser: VRouteInformationParser(), backButtonDispatcher: VBackButtonDispatcher(), // translations: Translate(), localizationsDelegates: const [ GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], supportedLocales: const [ Locale('en'), Locale('tr'), ], locale: const Locale('tr', 'TR'), // supportedLocales: const [ Locale('tr', 'TR')], fallbackLocale: const Locale('tr', 'TR'), scrollBehavior: FikoScrollBehavior(), theme: FikoTheme.lightTheme, debugShowCheckedModeBanner: false, debugShowMaterialGrid: false, showSemanticsDebugger: false, ), ); } } class FikoScrollBehavior extends MaterialScrollBehavior { // Override behavior methods and getters like dragDevices @override Set get dragDevices => { PointerDeviceKind.touch, PointerDeviceKind.mouse, PointerDeviceKind.stylus, PointerDeviceKind.trackpad, }; }