ProKitAppBar constructor

const ProKitAppBar({
  1. Key? key,
  2. required String heading,
  3. String? subtitle,
  4. IconData? trailingIcon,
  5. String? buttonLabel,
  6. Widget? trailingWidget,
  7. VoidCallback? onTrailingPressed,
  8. VoidCallback? onBackPressed,
  9. bool showBackButton = true,
  10. double marginTop = 32.0,
  11. double marginHorizontal = 0.0,
  12. Color backgroundColor = Colors.white,
  13. Color shadowColor = const Color(0xFFE0E0E0),
  14. double borderRadius = 8.0,
  15. double boxShadowBlur = 8.0,
  16. TextStyle? headingTextStyle,
  17. TextStyle? subtitleTextStyle,
  18. Color trailingIconColor = Colors.blueAccent,
  19. IconData backIcon = Icons.arrow_back_ios_new,
  20. Color backIconColor = Colors.blue,
  21. double backIconSize = 18.0,
  22. Color backButtonBackground = const Color(0xFFE0E0E0),
})

Implementation

const ProKitAppBar({
  super.key,
  required this.heading,
  this.subtitle,
  this.trailingIcon,
  this.buttonLabel,
  this.trailingWidget,
  this.onTrailingPressed,
  this.onBackPressed,
  this.showBackButton = true,
  this.marginTop = 32.0,
  this.marginHorizontal = 0.0,
  this.backgroundColor = Colors.white,
  this.shadowColor = const Color(0xFFE0E0E0),
  this.borderRadius = 8.0,
  this.boxShadowBlur = 8.0,
  this.headingTextStyle,
  this.subtitleTextStyle,
  this.trailingIconColor = Colors.blueAccent,
  this.backIcon = Icons.arrow_back_ios_new,
  this.backIconColor = Colors.blue,
  this.backIconSize = 18.0,
  this.backButtonBackground = const Color(0xFFE0E0E0),
});