Skip to content

Fix Dart 2 issue in flutter doctor's VS Code detection#18998

Merged
DanTup merged 1 commit intoflutter:masterfrom
DanTup:dart-2-issue
Jul 3, 2018
Merged

Fix Dart 2 issue in flutter doctor's VS Code detection#18998
DanTup merged 1 commit intoflutter:masterfrom
DanTup:dart-2-issue

Conversation

@DanTup
Copy link
Contributor

@DanTup DanTup commented Jul 2, 2018

Fixes #18995; a crash if you run doctor with --preview-dart-2 passed to the VM.

I presume this is the correct fix. json.decode returns a Map<String, dynamic> not String, String so this fixes this. However, the signature for decode actually just says dynamic and this changes still feels slightly weird because I'm still assuming the value is a String.

Copy link
Contributor

@devoncarew devoncarew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good (and mirrors what I have locally, when doing some quick preview dart 2 smoke testing).

@DanTup DanTup merged commit 9cb3cd4 into flutter:master Jul 3, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flutter emulators --launch crash when running via VM with --preview-dart-2

3 participants