GFCheckboxListTile constructor
const
GFCheckboxListTile({
- Key? key,
- required bool value,
- required ValueChanged<
bool> ? onChanged, - String? titleText,
- String? subTitleText,
- Color? color,
- Widget? avatar,
- Widget? title,
- Widget? subTitle,
- Widget? icon,
- Widget? description,
- Color? listItemTextColor = GFColors.DARK,
- EdgeInsets padding = const EdgeInsets.all(8),
- EdgeInsets margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
- double size = GFSize.MEDIUM,
- GFCheckboxType type = GFCheckboxType.basic,
- Color activeBgColor = GFColors.PRIMARY,
- Color inactiveBgColor = GFColors.WHITE,
- Color activeBorderColor = GFColors.WHITE,
- Color inactiveBorderColor = GFColors.DARK,
- Widget activeIcon = const Icon(Icons.check, size: 20, color: GFColors.WHITE),
- Widget? inactiveIcon,
- Color customBgColor = GFColors.SUCCESS,
- GFPosition position = GFPosition.end,
- bool selected = false,
- 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);