@@ -87,9 +87,7 @@ void main() async {
87
87
saveLocale: false ,
88
88
useOnlyLangCode: true ,
89
89
// fallbackLocale:Locale('en') ,
90
- supportedLocales: const [
91
- Locale ('ar' )
92
- ], // Locale('en', 'US'), Locale('ar','DZ')
90
+ supportedLocales: const [Locale ('ar' )], // Locale('en', 'US'), Locale('ar','DZ')
93
91
child: const MyApp (),
94
92
));
95
93
// await tester.idle();
@@ -117,10 +115,7 @@ void main() async {
117
115
await tester.pumpWidget (EasyLocalization (
118
116
path: '../../i18n' ,
119
117
// fallbackLocale:Locale('en') ,
120
- supportedLocales: const [
121
- Locale ('en' , 'US' ),
122
- Locale ('ar' , 'DZ' )
123
- ], // Locale('en', 'US'), Locale('ar','DZ')
118
+ supportedLocales: const [Locale ('en' , 'US' ), Locale ('ar' , 'DZ' )], // Locale('en', 'US'), Locale('ar','DZ')
124
119
child: const MyApp (),
125
120
));
126
121
// await tester.idle();
@@ -140,13 +135,10 @@ void main() async {
140
135
await tester.pumpWidget (EasyLocalization (
141
136
path: '../../i18n' ,
142
137
// fallbackLocale:Locale('en') ,
143
- supportedLocales: const [
144
- Locale ('en' , 'US' ),
145
- Locale ('ar' , 'DZ' )
146
- ], // Locale('en', 'US'), Locale('ar','DZ')
138
+ supportedLocales: const [Locale ('en' , 'US' ), Locale ('ar' , 'DZ' )], // Locale('en', 'US'), Locale('ar','DZ')
147
139
child: const MyApp (),
148
140
));
149
- // await tester.idle();
141
+ await tester.idle ();
150
142
// The async delegator load will require build on the next frame. Thus, pump
151
143
await tester.pump ();
152
144
@@ -161,13 +153,10 @@ void main() async {
161
153
await tester.runAsync (() async {
162
154
await tester.pumpWidget (EasyLocalization (
163
155
path: '../../i18n' ,
164
- supportedLocales: const [
165
- Locale ('en' , 'US' ),
166
- Locale ('ar' , 'DZ' )
167
- ], // Locale('en', 'US'), Locale('ar','DZ')
156
+ supportedLocales: const [Locale ('en' , 'US' ), Locale ('ar' , 'DZ' )], // Locale('en', 'US'), Locale('ar','DZ')
168
157
child: const MyApp (),
169
158
));
170
- // await tester.idle();
159
+ await tester.idle ();
171
160
// The async delegator load will require build on the next frame. Thus, pump
172
161
await tester.pump ();
173
162
@@ -182,10 +171,7 @@ void main() async {
182
171
await tester.runAsync (() async {
183
172
await tester.pumpWidget (EasyLocalization (
184
173
path: '../../i18n' ,
185
- supportedLocales: const [
186
- Locale ('en' , 'US' ),
187
- Locale ('ar' , 'DZ' )
188
- ], // Locale('en', 'US'), Locale('ar','DZ')
174
+ supportedLocales: const [Locale ('en' , 'US' ), Locale ('ar' , 'DZ' )], // Locale('en', 'US'), Locale('ar','DZ')
189
175
startLocale: const Locale ('ar' , 'DZ' ),
190
176
child: const MyApp (),
191
177
));
@@ -208,10 +194,7 @@ void main() async {
208
194
await tester.runAsync (() async {
209
195
await tester.pumpWidget (EasyLocalization (
210
196
path: '../../i18n' ,
211
- supportedLocales: const [
212
- Locale ('en' , 'US' ),
213
- Locale ('ar' , 'DZ' )
214
- ], // Locale('en', 'US'), Locale('ar','DZ')
197
+ supportedLocales: const [Locale ('en' , 'US' ), Locale ('ar' , 'DZ' )], // Locale('en', 'US'), Locale('ar','DZ')
215
198
child: const MyApp (),
216
199
));
217
200
await tester.idle ();
@@ -229,10 +212,7 @@ void main() async {
229
212
await tester.runAsync (() async {
230
213
await tester.pumpWidget (EasyLocalization (
231
214
path: '../../i18n' ,
232
- supportedLocales: const [
233
- Locale ('en' , 'US' ),
234
- Locale ('ar' , 'DZ' )
235
- ], // Locale('en', 'US'), Locale('ar','DZ')
215
+ supportedLocales: const [Locale ('en' , 'US' ), Locale ('ar' , 'DZ' )], // Locale('en', 'US'), Locale('ar','DZ')
236
216
startLocale: const Locale ('ar' , 'DZ' ),
237
217
child: const MyApp (),
238
218
));
0 commit comments