feat:login page done

This commit is contained in:
jahongireshonqulov
2025-10-29 12:00:33 +05:00
parent d3ad5b8ddd
commit 2ed2c430c0
27 changed files with 524 additions and 178 deletions

View File

@@ -1,4 +1,5 @@
import 'package:food_delivery_client/feature/common/presentation/blocs/language_bloc/language_bloc.dart';
import 'package:toastification/toastification.dart';
import 'food_delivery_client.dart';
@@ -44,28 +45,30 @@ class _MyAppState extends State<MyApp> {
return BlocBuilder<LanguageBloc, LanguageState>(
bloc: context.read<LanguageBloc>()..add(LanguageEvent.started()),
builder: (context, state) {
return MaterialApp.router(
title: "Uber Eats",
debugShowCheckedModeBanner: false,
theme: AppTheme.lightTheme,
routerConfig: sl<AppRoutes>().router,
locale: state.currentLocale,
supportedLocales: L10n.locales,
localizationsDelegates: [
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
builder: (context, child) => GestureDetector(
onTap: () {
FocusManager.instance.primaryFocus?.unfocus();
},
child: MediaQuery(
data: MediaQuery.of(
context,
).copyWith(textScaler: const TextScaler.linear(1)),
child: child!,
return ToastificationWrapper(
child: MaterialApp.router(
title: "Uber Eats",
debugShowCheckedModeBanner: false,
theme: AppTheme.lightTheme,
routerConfig: sl<AppRoutes>().router,
locale: state.currentLocale,
supportedLocales: L10n.locales,
localizationsDelegates: [
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
builder: (context, child) => GestureDetector(
onTap: () {
FocusManager.instance.primaryFocus?.unfocus();
},
child: MediaQuery(
data: MediaQuery.of(
context,
).copyWith(textScaler: const TextScaler.linear(1)),
child: child!,
),
),
),
);