GenderSelector constructor

const GenderSelector({
  1. Key? key,
  2. required void onGenderSelected(
    1. String gender
    ),
  3. String fieldName = "Gender",
  4. Color? fieldNameColor,
  5. double fieldFontSize = StandardFieldStyle.fieldFontSize,
  6. FontWeight fieldFontWeight = StandardFieldStyle.fieldFontWeight,
  7. List<String> genders = const ['Male', 'Female'],
  8. double fontSize = 15,
  9. Color primaryColor = IntelligentsiaColors.primary,
  10. Color fontColor = IntelligentsiaColors.backgroundColor,
  11. Color unselectedBackgroundColor = IntelligentsiaColors.backgroundColor,
  12. BorderRadius borderRadius = StandardFieldStyle.borderRadius,
  13. BoxBorder? borderStyle,
  14. EdgeInsets insidePadding = StandardFieldStyle.insidePadding,
  15. 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,
});