SelectableContainer constructor
SelectableContainer({
- required bool selected,
- Color? marginColor,
- Color? unselectedBackgroundColor,
- Color? selectedBackgroundColor,
- Color? unselectedBackgroundColorIcon,
- Color? selectedBackgroundColorIcon,
- Color? selectedBorderColor,
- Color? unselectedBorderColor,
- Color? selectedBorderColorIcon,
- Color? unselectedBorderColorIcon,
- @Deprecated('Use onValueChanged') Function? onPressed,
- required ValueChanged<
bool> onValueChanged, - int iconSize = 16,
- Color iconColor = Colors.white,
- IconData icon = Icons.check,
- IconData? unselectedIcon,
- Alignment iconAlignment = Alignment.topRight,
- int borderSize = 2,
- double selectedOpacity = 1.0,
- double unselectedOpacity = 0.5,
- int opacityAnimationDuration = 600,
- double padding = 0,
- double elevation = 0.0,
- double borderRadius = 10.0,
- double topMargin = 0.0,
- double bottomMargin = 0.0,
- double leftMargin = 0.0,
- double rightMargin = 0.0,
- double? topIconPosition,
- double? bottomIconPosition,
- double? leftIconPosition,
- double? rightIconPosition,
- required Widget? child,
Implementation
SelectableContainer(
{required this.selected,
this.marginColor,
this.unselectedBackgroundColor,
this.selectedBackgroundColor,
this.unselectedBackgroundColorIcon,
this.selectedBackgroundColorIcon,
this.selectedBorderColor,
this.unselectedBorderColor,
this.selectedBorderColorIcon,
this.unselectedBorderColorIcon,
@Deprecated('Use onValueChanged') this.onPressed,
required this.onValueChanged,
this.iconSize = 16,
this.iconColor = Colors.white,
this.icon = Icons.check,
this.unselectedIcon,
this.iconAlignment = Alignment.topRight,
this.borderSize = 2,
this.selectedOpacity = 1.0,
this.unselectedOpacity = 0.5,
this.opacityAnimationDuration = 600,
this.padding = 0,
this.elevation = 0.0,
this.borderRadius = 10.0,
this.topMargin = 0.0,
this.bottomMargin = 0.0,
this.leftMargin = 0.0,
this.rightMargin = 0.0,
this.topIconPosition,
this.bottomIconPosition,
this.leftIconPosition,
this.rightIconPosition,
required this.child});