DefaultAppBarCustom class
A customizable default AppBar widget.
This widget provides a flexible AppBar that can be used throughout the application, with options to customize its appearance and behavior.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DefaultAppBarCustom
- Implemented types
Constructors
-
DefaultAppBarCustom({Key? key, Color? bgColor, Color? notiColor, Color? titleColor, String? titleText, List<
Widget> ? actions, dynamic onSettingPressed()?, Widget? leading, PreferredSizeWidget? bottom, Widget? title, FontWeight? titleFontWeight, dynamic onPressed()?, double? leadingWidth, double? titleFontSize, Widget? subTitleWidget, bool showBottomBorder = true, bool centerTitle = false, bool bottomCurve = false, bool isBackIcon = true, bool isNotificationIcon = false, bool isSetting = true, double? toolbarHeight = 65, Widget? leadingIcon}) - Default app bar custom
Properties
-
actions
↔ List<
Widget> ? -
A list of widgets to display after the title.
getter/setter pair
- bgColor ↔ Color?
-
The background color of the AppBar. Defaults to
MyColors.whiteColor.getter/setter pair - bottom ↔ PreferredSizeWidget?
-
A widget to display at the bottom of the AppBar.
getter/setter pair
- bottomCurve ↔ bool
-
Whether the bottom of the AppBar has a curved shape. Defaults to
false.getter/setter pair - centerTitle ↔ bool
-
Whether to center the title. Defaults to
false.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- isBackIcon ↔ bool
-
Whether to show a back icon if possible. Defaults to
true.getter/setter pair - isNotificationIcon ↔ bool
-
Whether to show a notification icon in the actions. Defaults to
false.getter/setter pair - isSetting ↔ bool
-
Whether to show a settings/menu icon as the leading widget if no back icon is shown. Defaults to
true.getter/setter pair - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading ↔ Widget?
-
A custom widget to display before the title.
getter/setter pair
- leadingIcon ↔ Widget?
-
A custom icon to use for the leading widget, overriding the default back or menu icon.
getter/setter pair
- leadingWidth ↔ double?
-
The width of the leading widget.
getter/setter pair
- notiColor ↔ Color?
-
The color of the notification icon. Defaults to
CustomStylesConfig.primaryColor.getter/setter pair - onPressed ↔ dynamic Function()?
-
Callback function when the leading back icon is pressed. Overrides the default pop navigation.
getter/setter pair
- onSettingPressed ↔ dynamic Function()?
-
Callback function when the settings/menu icon is pressed.
getter/setter pair
- preferredSize → Size
-
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showBottomBorder ↔ bool
-
Whether to show a bottom border. This property is declared but not currently used in the build method. Defaults to
true.getter/setter pair - subTitleWidget ↔ Widget?
-
A widget to display below the title.
getter/setter pair
- title ↔ Widget?
-
A custom widget to use as the title, overriding
titleText.getter/setter pair - titleColor ↔ Color?
-
The color of the title text. Defaults to
MyColors.blackColor.getter/setter pair - titleFontSize ↔ double?
-
The font size for the title text. Defaults to
16.getter/setter pair - titleFontWeight ↔ FontWeight?
-
The font weight for the title text. Defaults to
FontWeight.w600.getter/setter pair - titleText ↔ String?
-
The text to display in the title.
getter/setter pair
- toolbarHeight ↔ double?
-
The height of the toolbar. Defaults to
65.getter/setter pair
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited