BaseToolbar class

Inheritance

Constructors

BaseToolbar({String? leftIconType, dynamic leftIcon, Color? leftIconColor, Function? leftIconClick, dynamic rightIcon, Color? rightIconColor, String? rightIconType, Function? rightIconClick, String? title, String? rightText, Function? rightTextClick, String? leftText, Function? leftTextClick, Color backgroundColor = Colors.white, double toolbarHeight = 60, TextStyle? leftTextStyle, TextStyle? titleTextStyle, TextStyle? rightTextStyle, Widget? leftChild, Widget? centerChild, Widget? rightChild})

Properties

backgroundColor Color
Set toolbar background color.
final
centerChild Widget?
Make custom widget to set at center of toolbar.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftChild Widget?
Make custom widget to set at left side of toolbar.
final
leftIcon → dynamic
Set icon on left side of the toolbar. Icon can be an String value if you use an assets OR Icon can be an IconData if you use Icons.
final
leftIconClick Function?
Set left icon click event if you have used leftIcon & leftIconType.
final
leftIconColor Color?
Use to set only color of left icon.
final
leftIconType String?
If you set left icon you need to provide the type of icon. Use this to set type of icon can be from below two option.
final
leftText String?
Set text at left side of toolbar.
final
leftTextClick Function?
Set click event of left side text. @Note: It will not work if leftText is empty or not set.
final
leftTextStyle TextStyle?
Set custom text style of left text in toolbar.
final
rightChild Widget?
Make custom widget to set at right side of toolbar.
final
rightIcon → dynamic
Set icon on right side of the toolbar. Icon can be an String value if you use an assets OR Icon can be an IconData if you use Icons.
final
rightIconClick Function?
Set right icon click event if you have used rightIcon & rightIconType.
final
rightIconColor Color?
Use to set only color of right icon.
final
rightIconType String?
If you set right icon you need to provide the type of icon. Use this to set type of icon can be from below two option.
final
rightText String?
Set text at right side of toolbar.
final
rightTextClick Function?
Set click event of right side text. @Note: It will not work if rightText is empty or not set.
final
rightTextStyle TextStyle?
Set custom text style of right text in toolbar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Set title on toolbar.
final
titleTextStyle TextStyle?
Set custom text style of title text in toolbar.
final
toolbarHeight double
Manage height of toolbar. By default it height is 60 and it can not be less than 50.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _BaseToolbarState
Creates the mutable state for this widget at a given location in the tree.
override
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}) 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

Constants

IMAGE_TYPE_ICON → const String
IMAGE_TYPE_IMAGE → const String