ConfiguraTile constructor

ConfiguraTile({
  1. Color? tileColor,
  2. Color? tileColorDark,
  3. double? blur,
  4. double? elevation,
  5. EdgeInsetsGeometry? padding,
  6. BorderRadius? borderRadius,
  7. required Icon leading,
  8. required String title,
  9. String? subtitle,
  10. required VoidCallback onTap,
  11. Color? iconColor,
  12. Color? iconColorDark,
  13. Color? titleColor,
  14. Color? titleColorDark,
  15. Color? subtitleColor,
  16. Color? subtitleColorDark,
  17. Icon? trailing,
  18. Color? trailingColor,
  19. Color? trailingColorDark,
  20. String? headerText,
  21. double? headerSpacing,
  22. CrossAxisAlignment? textAlignment,
  23. bool visibilityEnabled = true,
  24. bool themeEnabled = false,
  25. Function? visibilityCondition,
  26. bool headerPositionOutside = true,
  27. CrossAxisAlignment? headerPosition,
  28. Color? headerTextColor,
})

Implementation

ConfiguraTile({
  this.tileColor,
  this.tileColorDark,
  this.blur,
  this.elevation,
  this.padding,
  this.borderRadius,
  required this.leading,
  required this.title,
  this.subtitle, // Updated constructor
  required this.onTap,
  this.iconColor,
  this.iconColorDark,
  this.titleColor,
  this.titleColorDark,
  this.subtitleColor, // Updated constructor
  this.subtitleColorDark,
  this.trailing,
  this.trailingColor,
  this.trailingColorDark,
  this.headerText,
  this.headerSpacing,
  this.textAlignment,
  this.visibilityEnabled = true,
  this.themeEnabled = false,
  this.visibilityCondition,
  this.headerPositionOutside = true, // Default value for header position
  this.headerPosition, // New property for header position alignment
  this.headerTextColor, // New property for header text color
});