custom_radio icon indicating copy to clipboard operation
custom_radio copied to clipboard

Error while run the project

Open BriscoPeas93 opened this issue 6 years ago • 5 comments

../../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) {

BriscoPeas93 avatar Nov 20 '19 10:11 BriscoPeas93

Hi there ¿ Any solution ?

luis-jaramillo avatar Dec 12 '19 05:12 luis-jaramillo

I have same issue on iOS

atakangl avatar Feb 06 '20 18:02 atakangl

hi guys any solution for this ??

Omar1408mmz avatar Mar 08 '20 12:03 Omar1408mmz

Yes, I have wasted my couple of days to solve this issue but finally i found the solution: check this solution

jitendra-negi avatar Apr 10 '20 11:04 jitendra-negi

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();
      }
    });
  }

Comment

luis-jaramillo avatar Sep 23 '20 14:09 luis-jaramillo