custom_radio
custom_radio copied to clipboard
Error while run the project
../../flutter/.pub-cache/hosted/pub.dartlang.org/custom_radio-0.1.2/lib/custom_radio.dart:102:36: Error: The argument type 'Null Function(Null)' can't be assigned to the parameter type 'dynamic Function(void)'. [ ] _controller.reverse().then((Null value) {
Hi there ¿ Any solution ?
I have same issue on iOS
hi guys any solution for this ??
Yes, I have wasted my couple of days to solve this issue but finally i found the solution: check this solution
Open the file ../../flutter/.pub-cache/hosted/pub.dartlang.org/custom_radio-0.1.2/lib/custom_radio.dart and override _updateState method:
void _updateState() {
setState(() {
if (widget.checked && _controller.status != AnimationStatus.completed) {
_controller.forward();
} else {
// _controller.reverse().then((Null value) {
// setState(() {});
// });
_controller.reverse();
}
});
}