Skip to content

Issue from website page Internationalizing Flutter Apps #16588

@moesaeed

Description

@moesaeed

From URL: https://flutter.io/tutorials/internationalization/

The example @ https://github.com/flutter/website/blob/master/_includes/code/internationalization/intl/main.dart

throw an error
#0 _ChunkedJsonParser.fail (dart:convert/runtime/libconvert_patch.dart:1362:5)
#1 _ChunkedJsonParser.parseNumber (dart:convert/runtime/libconvert_patch.dart:1258:9)
#2 _ChunkedJsonParser.parse (dart:convert/runtime/libconvert_patch.dart:926:22)
#3 _parseJson (dart:convert/runtime/libconvert_patch.dart:29:10)
#4 JsonDecoder.convert (dart:convert/json.dart:542:36)
#5 JsonCodec.decode (dart:convert/json.dart:169:41)

To fix the issue, I believe change line 51
Original: return initializeMessages(localeName).then((Null _) {
Suggested: return initializeMessages(localeName).then((dynamic _) {

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions