THeader.homepage constructor

const THeader.homepage({
  1. Key? key,
  2. required String title,
  3. TextStyle? titleStyle,
  4. String? subtitle,
  5. TextStyle? subtitleStyle,
  6. bool enableCenterTitle = false,
  7. Widget? leadingAvatar,
  8. List<Widget>? suffixAction,
  9. Color? backgroundColor,
  10. Widget? prefixAction,
  11. Color? bottomColor,
})

Implementation

const THeader.homepage({
  super.key,
  required this.title,
  this.titleStyle,
  this.subtitle,
  this.subtitleStyle,
  this.enableCenterTitle = false,
  this.leadingAvatar,
  this.suffixAction,
  this.backgroundColor,
  this.prefixAction,
  this.bottomColor,
})  : headerType = HeaderType.homepage,
      isBackButtonEnabled = false,
      hintText = null,
      onChanged = null,
      iconColor = null,
      onSubmitted = null,
      icon = const Icon(Icons.arrow_back_ios, color: Colors.white);