This repository was archived by the owner on Feb 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import 'package:audioplayers/audioplayers.dart';
22import 'package:flame/cache.dart' ;
33import 'package:flutter/material.dart' ;
44import 'package:flutter_bloc/flutter_bloc.dart' ;
5- import 'package:flutter_localizations/flutter_localizations.dart' ;
65import 'package:google_fonts/google_fonts.dart' ;
76import 'package:very_good_flame_game/l10n/l10n.dart' ;
87import 'package:very_good_flame_game/loading/loading.dart' ;
@@ -47,10 +46,7 @@ class AppView extends StatelessWidget {
4746 ),
4847 textTheme: GoogleFonts .poppinsTextTheme (),
4948 ),
50- localizationsDelegates: const [
51- AppLocalizations .delegate,
52- GlobalMaterialLocalizations .delegate,
53- ],
49+ localizationsDelegates: AppLocalizations .localizationsDelegates,
5450 supportedLocales: AppLocalizations .supportedLocales,
5551 home: const LoadingPage (),
5652 );
Original file line number Diff line number Diff line change 11import 'package:flutter/material.dart' ;
22import 'package:flutter_bloc/flutter_bloc.dart' ;
3- import 'package:flutter_localizations/flutter_localizations.dart' ;
43import 'package:flutter_test/flutter_test.dart' ;
54import 'package:mockingjay/mockingjay.dart' ;
65import 'package:very_good_flame_game/game/cubit/cubit.dart' ;
@@ -22,10 +21,7 @@ extension PumpApp on WidgetTester {
2221 BlocProvider .value (value: preloadCubit ?? MockPreloadCubit ()),
2322 ],
2423 child: MaterialApp (
25- localizationsDelegates: const [
26- AppLocalizations .delegate,
27- GlobalMaterialLocalizations .delegate,
28- ],
24+ localizationsDelegates: AppLocalizations .localizationsDelegates,
2925 supportedLocales: AppLocalizations .supportedLocales,
3026 home: navigator != null
3127 ? MockNavigatorProvider (navigator: navigator, child: widget)
You can’t perform that action at this time.
0 commit comments