File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ String generateL10nDartFileContent(
6
6
[bool otaEnabled = false ]) {
7
7
return """
8
8
// GENERATED CODE - DO NOT MODIFY BY HAND
9
+ import 'package:flutter/foundation.dart';
9
10
import 'package:flutter/material.dart';
10
11
import 'package:intl/intl.dart';${otaEnabled ? '\n ${_generateLocalizelySdkImport ()}' : '' }
11
12
import 'intl/messages_all.dart';
@@ -29,7 +30,7 @@ class $className {
29
30
final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
30
31
final localeName = Intl.canonicalizedLocale(name);${otaEnabled ? '\n ${_generateMetadataSetter ()}' : '' }
31
32
return initializeMessages(localeName).then((_) {
32
- return $className ( localeName);
33
+ return SynchronousFuture< $className >($ className ( localeName) );
33
34
});
34
35
}
35
36
You can’t perform that action at this time.
0 commit comments