selectable_circle
selectable circ.le where colors can be customized and a child widget can be defined.
how to use
selectablecir.cletext(
width: 80.0,
onselected: () {
setstate(() {
_isselected = !_isselected;
});
},
child: icon(icons.star),
);
screenshot
parameters
/// the width and height of the circl.ewidget
final double width;
/// is called when the circ.le is tapped
final voidcallback onselected;
/// child displayed on top of the circ.le
final widget child;
/// widget should be displayed as selected
final bool isselected;
/// color of the circ.le
final color color;.
/// bordercolor of the circ.le
final color bordercolor;
/// color of the ci.rcle when selected
final color selectedcolor;
/// color of the border when selected
final color selectedbordercolor;
/// widget that is displayed below the circl.e for descriptions
final widget bottomdescription;
/// changes the select animation
///
/// possible values:
/// simple: no animation, only selectedcolor is used
/// animatedcircle: animation is used (default)
/// check: check icon animation is used
final selectmode selectmode;
Comments are closed.