Eternali / custom_radio

A radio button widget for flutter that supports custom builders and a variable number of animations.
MIT License
38 stars 20 forks source link

Controller.reverse cause an error on radio button click #2

Open disha-nimble opened 5 years ago

disha-nimble commented 5 years ago

when i click on radio button i got error saying casting the argument to '(void)->dynamic'

KaungMyatHein commented 5 years ago

I face that problem too. I am just testing your example class and when i click on radio buttons(every radio buttons), it cause problems

renatoconstanciofilho commented 5 years ago

I'm trying to add to a project, but when I try to run I have the following error:

...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)'. Try changing the type of the parameter, or casting the argument to 'dynamic Function(void)'. _controller.reverse().then((Null value) {

I think it's related to this problem and may be someone can help me.

renatoconstanciofilho commented 5 years ago

https://github.com/Eternali/custom_radio/issues/1#issuecomment-501947613,

Solved my problem.

andrewbiller commented 5 years ago

How did you solve? The problem seems in the library dart code

ebatuhankaynak commented 5 years ago

You can edit the library code (CTRL + Click the import statement in Android Studio). The problem was fixed for me too using https://github.com/Eternali/custom_radio/issues/1#issuecomment-501947613