You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When x_icon ^0.0.5 is included in a project, when that project is compiled (discovered during unit test execution) it throws two warnings in icon.dart:
/home/asdef/.pub-cache/hosted/pub.dartlang.org/x_icon-0.0.5/lib/src/icon.dart:51:24: Warning: Operand of null-aware operation '!' has type 'ThemeData' which excludes null.
- 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/flutter/flutter/packages/flutter/lib/src/material/theme_data.dart').
style: Theme.of(context)!
^
/home/asdef/.pub-cache/hosted/pub.dartlang.org/x_icon-0.0.5/lib/src/icon.dart:52:16: Warning: Operand of null-aware operation '!' has type 'TextTheme' which excludes null.
- 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
.textTheme!
^
To Reproduce
add x_icon to any flutter project
compile any code in the project, it doesn't even need to use x_icon
When x_icon ^0.0.5 is included in a project, when that project is compiled (discovered during unit test execution) it throws two warnings in icon.dart:
To Reproduce
Expected behavior
no compile warnings.
Additional context
Flutter version: 2.2.3
dart version: 2.13.4
The text was updated successfully, but these errors were encountered: