forked from eatvio/eatvio_app
Merge pull request 'revert f0506dfe6c4209038d7c395c6f443cfb59d20c5c' (#71) from maxxkim-patch-1 into main
Reviewed-on: https://gittea.eatv.io/eatvio/eatvio_app/pulls/71 Reviewed-by: mike <reshetnick.mike@gmail.com>
This commit is contained in:
@@ -5,7 +5,6 @@ import 'core/app_export.dart';
|
||||
import 'package:hive_flutter/hive_flutter.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
import 'package:keyboard_dismisser/keyboard_dismisser.dart';
|
||||
|
||||
var globalMessengerKey = GlobalKey<ScaffoldMessengerState>();
|
||||
void main() async {
|
||||
@@ -34,31 +33,26 @@ class MyApp extends StatelessWidget {
|
||||
),
|
||||
child: BlocBuilder<ThemeBloc, ThemeState>(
|
||||
builder: (context, state) {
|
||||
return KeyboardDismisser(
|
||||
gestures: [
|
||||
GestureType.onTap,
|
||||
GestureType.onPanUpdateDownDirection,
|
||||
],
|
||||
child: MaterialApp(
|
||||
theme: theme,
|
||||
title: 'Eatvio',
|
||||
navigatorKey: NavigatorService.navigatorKey,
|
||||
debugShowCheckedModeBanner: false,
|
||||
localizationsDelegates: [
|
||||
AppLocalizationDelegate(),
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
GlobalCupertinoLocalizations.delegate,
|
||||
],
|
||||
supportedLocales: [
|
||||
Locale(
|
||||
'ru',
|
||||
'',
|
||||
),
|
||||
],
|
||||
initialRoute: AppRoutes.initialRoute,
|
||||
routes: AppRoutes.routes,
|
||||
));
|
||||
return MaterialApp(
|
||||
theme: theme,
|
||||
title: 'Eatvio',
|
||||
navigatorKey: NavigatorService.navigatorKey,
|
||||
debugShowCheckedModeBanner: false,
|
||||
localizationsDelegates: [
|
||||
AppLocalizationDelegate(),
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
GlobalCupertinoLocalizations.delegate,
|
||||
],
|
||||
supportedLocales: [
|
||||
Locale(
|
||||
'ru',
|
||||
'',
|
||||
),
|
||||
],
|
||||
initialRoute: AppRoutes.initialRoute,
|
||||
routes: AppRoutes.routes,
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
@@ -27,7 +27,6 @@ dependencies:
|
||||
image_picker: ^1.0.7
|
||||
flutter_typeahead: ^5.2.0
|
||||
bloc_test: ^9.1.6
|
||||
keyboard_dismisser: ^3.0.0
|
||||
|
||||
dev_dependencies:
|
||||
dart_code_metrics: ^5.7.6
|
||||
|
||||
Reference in New Issue
Block a user