Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report bug:type '() => Null' is not a subtype of type '(() => Expression)?' of 'orElse' #608

Closed
shangguanyanyan opened this issue Apr 5, 2021 · 2 comments

Comments

@shangguanyanyan
Copy link

exception :
type '() => Null' is not a subtype of type '(() => Expression)?' of 'orElse'

package version : ^2.0.0-nullsafety.0

stack:
When the exception was thrown, this was the stack:
#0 ListMixin.firstWhere (dart:collection/list.dart)
#1 declarationsToStyle. (package:flutter_html/src/css_parser.dart:52:62)
#2 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:397:8)
#3 declarationsToStyle (package:flutter_html/src/css_parser.dart:10:16)
#4 inlineCSSToStyle (package:flutter_html/src/css_parser.dart:85:10)

flutter version:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.4, on macOS 11.1 20C69 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Community Edition (version 2020.2)
[✓] VS Code (version 1.54.3)
[✓] Connected device (2 available)

@tneotia
Copy link
Collaborator

tneotia commented Apr 5, 2021

This is a known bug and has been fixed on master.

@erickok
Copy link
Collaborator

erickok commented Apr 10, 2021

Please try master (or await 2.0.0 release).

@erickok erickok closed this as completed Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants