GrxHeader constructor
GrxHeader({})
Implementation
GrxHeader({
super.key,
required this.title,
this.backgroundColor = Colors.transparent,
this.actions = const [],
this.showBackButton = false,
this.showCloseButton = false,
this.height = _kHeight,
this.animationProgress = 0,
final Color? foregroundColor,
final SystemUiOverlayStyle? systemOverlayStyle,
}) : systemOverlayStyle =
systemOverlayStyle ??
(backgroundColor.computeLuminance() > .5
? GrxSystemOverlayStyle.dark
: GrxSystemOverlayStyle.light),
foregroundColor = foregroundColor ?? GrxColors.primary.shade800;