Skip to content

Commit

Permalink
fix(wind_icon): Accept any numeric value (double and int) (#7)
Browse files Browse the repository at this point in the history
degree property for WindIcon doesn't accept int values (.toDouble needs to be used). To fix that, the type of the variable "degree" needs to be changed to num to accept both int and double values.
  • Loading branch information
dariotrombello committed Feb 12, 2020
1 parent 3eefe5e commit 3c8a350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/wind_icon.dart
Expand Up @@ -22,7 +22,7 @@ import 'package:weather_icons/src/util/rotate.dart';
/// onPressed: () { }
/// );
class WindIcon extends BoxedIcon {
final double degree;
final num degree;

const WindIcon({
@required this.degree,
Expand Down

0 comments on commit 3c8a350

Please sign in to comment.