GFCheckboxListTile constructor

const GFCheckboxListTile({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. String? titleText,
  5. String? subTitleText,
  6. Color? color,
  7. Widget? avatar,
  8. Widget? title,
  9. Widget? subTitle,
  10. Widget? icon,
  11. Widget? description,
  12. Color? listItemTextColor = GFColors.DARK,
  13. EdgeInsets padding = const EdgeInsets.all(8),
  14. EdgeInsets margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  15. double size = GFSize.MEDIUM,
  16. GFCheckboxType type = GFCheckboxType.basic,
  17. Color activeBgColor = GFColors.PRIMARY,
  18. Color inactiveBgColor = GFColors.WHITE,
  19. Color activeBorderColor = GFColors.WHITE,
  20. Color inactiveBorderColor = GFColors.DARK,
  21. Widget activeIcon = const Icon(Icons.check, size: 20, color: GFColors.WHITE),
  22. Widget? inactiveIcon,
  23. Color customBgColor = GFColors.SUCCESS,
  24. GFPosition position = GFPosition.end,
  25. bool selected = false,
  26. bool autofocus = false,
})

GFCheckboxListTile is a tile with small box at right (as in a checklist) in which to place a check mark to make a selection with various customization options.

Implementation

const GFCheckboxListTile({
  Key? key,
  required this.value,
  required this.onChanged,
  this.titleText,
  this.subTitleText,
  this.color,
  this.avatar,
  this.title,
  this.subTitle,
  this.icon,
  this.description,
  this.listItemTextColor = GFColors.DARK,
  this.padding = const EdgeInsets.all(8),
  this.margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  this.size = GFSize.MEDIUM,
  this.type = GFCheckboxType.basic,
  this.activeBgColor = GFColors.PRIMARY,
  this.inactiveBgColor = GFColors.WHITE,
  this.activeBorderColor = GFColors.WHITE,
  this.inactiveBorderColor = GFColors.DARK,
  this.activeIcon = const Icon(
    Icons.check,
    size: 20,
    color: GFColors.WHITE,
  ),
  this.inactiveIcon,
  this.customBgColor = GFColors.SUCCESS,
  this.position = GFPosition.end,
  this.selected = false,
  this.autofocus = false,
}) : super(key: key);