custom_radio icon indicating copy to clipboard operation
custom_radio copied to clipboard

Red screens when running your example

Open willvlad opened this issue 6 years ago • 4 comments

willvlad avatar Dec 09 '18 15:12 willvlad

following is the error whenever a radio was clicked:

I/flutter ( 8187): #143 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter ( 8187): #144 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter ( 8187): #145 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) I/flutter ( 8187): #146 _invoke (dart:ui/hooks.dart:154:13) I/flutter ( 8187): #147 _drawFrame (dart:ui/hooks.dart:143:3) I/flutter ( 8187): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter ( 8187): Another exception was thrown: 'package:custom_radio/custom_radio.dart': error: line 102 pos 36: file:///C:/Users/n.mansour/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/custom_radio-0.1.2/lib/custom_radio.dart:102:36: Error: The argument type '(dart.core::Null) → dart.core::Null' can't be assigned to the parameter type '(void) → dynamic'. I/flutter ( 8187): Another exception was thrown: A RenderFlex overflowed by 199711 pixels on the right.

Cedar7 avatar Jan 04 '19 07:01 Cedar7

encounter the same issue. I just change line 102 to _controller.reverse(); Thanks

chunhunghan avatar Mar 29 '19 01:03 chunhunghan

encounter the same issue. I just change line 102 to _controller.reverse(); Thanks

like this (97-108) lines

 void _updateState() {
    setState(() {
      if (widget.checked && _controller.status != AnimationStatus.completed) {
        _controller.forward();
      } else {
        // _controller.reverse().then((Null value) {
        //   setState(() {});
        // });
        _controller.reverse();
      }
    });
  }

CyberHunter775 avatar Jun 14 '19 02:06 CyberHunter775

would be nice to have this fixed in a new release

rkmax avatar Jan 16 '20 19:01 rkmax