ProKitAppBar class

A fully customizable and dynamic AppBar-style header for ProKit UI Kit. Supports title, subtitle, back navigation, trailing widget/icon/button.

Inheritance
Available extensions

Constructors

ProKitAppBar.new({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)})
const

Properties

backButtonBackground Color
Back button container background
final
backgroundColor Color
Background color of the header
final
backIcon IconData
Back button icon
final
backIconColor Color
Back button icon color
final
backIconSize double
Back button icon size
final
borderRadius double
Radius for the box border
final
boxShadowBlur double
Elevation blur radius for shadow
final
buttonLabel String?
Optional label text for the trailing button
final
hashCode int
The hash code for this object.
no setterinherited
heading String
Required main title
final
headingTextStyle TextStyle?
Text style for the title
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
marginHorizontal double
Horizontal margin (default: 0)
final
marginTop double
Top margin for the header (default: 32)
final
onBackPressed VoidCallback?
Custom back button action
final
onTrailingPressed VoidCallback?
Callback for trailing button
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color
Shadow color for the box
final
showBackButton bool
Whether to show the back button (default: true)
final
subtitle String?
Optional subtitle below the title
final
subtitleTextStyle TextStyle?
Text style for the subtitle
final
trailingIcon IconData?
Icon shown when callBack and widget are null
final
trailingIconColor Color
Trailing icon color
final
trailingWidget Widget?
Optional trailing custom widget (e.g., icon, avatar)
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
center() Widget

Available on Widget, provided by the WidgetPadding extension

Wrap the Widget with Center
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
isVisible(bool isVisible) Widget

Available on Widget, provided by the VisibilityExtension extension

Shows or hides the widget based on isVisible.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onTap(VoidCallback onTap) Widget

Available on Widget, provided by the WidgetTap extension

Wraps the widget with an InkWell to provide onTap functionality.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
wrapWithPadding(EdgeInsets padding) Widget

Available on Widget, provided by the WidgetPadding extension

Wraps the widget with given EdgeInsets padding.

Operators

operator ==(Object other) bool
The equality operator.
inherited