ProKitAppBar constructor
const
ProKitAppBar({
- Key? key,
- required String heading,
- String? subtitle,
- IconData? trailingIcon,
- String? buttonLabel,
- Widget? trailingWidget,
- VoidCallback? onTrailingPressed,
- VoidCallback? onBackPressed,
- bool showBackButton = true,
- double marginTop = 32.0,
- double marginHorizontal = 0.0,
- Color backgroundColor = Colors.white,
- Color shadowColor = const Color(0xFFE0E0E0),
- double borderRadius = 8.0,
- double boxShadowBlur = 8.0,
- TextStyle? headingTextStyle,
- TextStyle? subtitleTextStyle,
- Color trailingIconColor = Colors.blueAccent,
- IconData backIcon = Icons.arrow_back_ios_new,
- Color backIconColor = Colors.blue,
- double backIconSize = 18.0,
- 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),
});