GenderSelector constructor
const
GenderSelector({
- Key? key,
- required void onGenderSelected(
- String gender
- String fieldName = "Gender",
- Color? fieldNameColor,
- double fieldFontSize = StandardFieldStyle.fieldFontSize,
- FontWeight fieldFontWeight = StandardFieldStyle.fieldFontWeight,
- List<
String> genders = const ['Male', 'Female'], - double fontSize = 15,
- Color primaryColor = IntelligentsiaColors.primary,
- Color fontColor = IntelligentsiaColors.backgroundColor,
- Color unselectedBackgroundColor = IntelligentsiaColors.backgroundColor,
- BorderRadius borderRadius = StandardFieldStyle.borderRadius,
- BoxBorder? borderStyle,
- EdgeInsets insidePadding = StandardFieldStyle.insidePadding,
- EdgeInsets outsidePadding = StandardFieldStyle.outsidePadding,
Implementation
const GenderSelector({
super.key,
required this.onGenderSelected,
// Field Name
this.fieldName = "Gender",
this.fieldNameColor,
this.fieldFontSize = StandardFieldStyle.fieldFontSize,
this.fieldFontWeight = StandardFieldStyle.fieldFontWeight,
// Gender Values
this.genders = const ['Male', 'Female'],
this.fontSize = 15,
// Theme Colors
this.primaryColor = IntelligentsiaColors.primary,
this.fontColor = IntelligentsiaColors.backgroundColor,
this.unselectedBackgroundColor = IntelligentsiaColors.backgroundColor,
// Borders
this.borderRadius = StandardFieldStyle.borderRadius,
this.borderStyle,
// Padding
this.insidePadding = StandardFieldStyle.insidePadding,
this.outsidePadding = StandardFieldStyle.outsidePadding,
});