long1eu / material_pickers

MIT License
102 stars 12 forks source link

Exception by Animation Library #1

Open funkystu opened 6 years ago

funkystu commented 6 years ago

Got this while using the library: The following assertion was thrown while notifying listeners for AnimationController: type 'double' is not a subtype of type 'int' where double is from dart:core int is from dart:core

Changing line 181 in color_picker_widget.dart from new Tween(begin: 0, end: _lastColorList.length).animate(controller) to new Tween(begin:0.0,end: _lastColorList.length).animate(controller) fixed it for me.

Thanks.

long1eu commented 6 years ago

you should make a pull request