GrxHeader constructor

GrxHeader({
  1. Key? key,
  2. required String title,
  3. Color backgroundColor = Colors.transparent,
  4. List<Widget> actions = const [],
  5. bool showBackButton = false,
  6. bool showCloseButton = false,
  7. double height = _kHeight,
  8. double animationProgress = 0,
  9. Color? foregroundColor,
  10. SystemUiOverlayStyle? systemOverlayStyle,
})

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;