forked from eatvio/eatvio_app
refactor: add intl localization
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import 'package:eatvio_app/localization/app_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:eatvio_app/generated/l10n.dart';
|
||||
import 'package:eatvio_app/old/auth/auth_screen/auth_screen.dart';
|
||||
import 'package:eatvio_app/old/auth/auth_screen/bloc/auth_bloc.dart';
|
||||
import 'package:eatvio_app/old/auth/auth_screen/models/auth_model.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
group('AuthScreen', () {
|
||||
@@ -14,18 +14,13 @@ void main() {
|
||||
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(
|
||||
localizationsDelegates: [
|
||||
AppLocalizationDelegate(),
|
||||
localizationsDelegates: const [
|
||||
S.delegate,
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
GlobalCupertinoLocalizations.delegate,
|
||||
],
|
||||
supportedLocales: [
|
||||
Locale(
|
||||
'ru',
|
||||
'',
|
||||
),
|
||||
],
|
||||
supportedLocales: S.delegate.supportedLocales,
|
||||
home: BlocProvider<AuthBloc>(
|
||||
create: (context) => authBloc,
|
||||
child: Builder(
|
||||
|
||||
Reference in New Issue
Block a user