ZetaTopAppBar class Components

Top app bars provide content and actions related to the current screen.

Inheritance
Implemented types
Available Extensions

Constructors

ZetaTopAppBar({Key? key, bool? rounded, List<Widget>? actions, bool automaticallyImplyLeading = true, ZetaSearchController? searchController, Widget? leading, Widget? title, TextStyle? titleTextStyle, ZetaTopAppBarType type = ZetaTopAppBarType.defaultAppBar, void onSearch(String)?, String? searchHintText = 'Search', VoidCallback? onSearchMicrophoneIconPressed})
Creates a ZetaTopAppBar.
const
ZetaTopAppBar.centered({Key? key, bool? rounded, List<Widget>? actions, bool automaticallyImplyLeading = true, ZetaSearchController? searchController, Widget? leading, Widget? title, TextStyle? titleTextStyle, void onSearch(String)?, String? searchHintText = 'Search', VoidCallback? onSearchMicrophoneIconPressed})
Creates a ZetaTopAppBar with centered title.
const
ZetaTopAppBar.extended({Key? key, bool? rounded, List<Widget>? actions, bool automaticallyImplyLeading = true, ZetaSearchController? searchController, Widget? leading, Widget? title, TextStyle? titleTextStyle, void onSearch(String)?, String? searchHintText = 'Search', VoidCallback? onSearchMicrophoneIconPressed, bool shrinks = true})
Creates a ZetaTopAppBar with an extended title over 2 lines.
const

Properties

actions List<Widget>?
A list of Widgets to display in a row after the title widget.
final
automaticallyImplyLeading bool
Configures whether the back button to be displayed.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
Widget displayed first in the app bar row.
final
onSearch → (void Function(String)?)
Called when text in the search field is submitted.
final
onSearchMicrophoneIconPressed VoidCallback?
If omitted the microphone icon won't show up. Called when the icon button is pressed. Normally used for speech recognition/speech to text.
final
preferredSize Size
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
rounded bool?
Sets rounded or sharp border of the containing box and the icon style.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchController ZetaSearchController?
Used to control the search textfield and states.
final
searchHintText String?
Label used as hint text. If null, displays 'Search'.
final
shrinks bool
If ZetaTopAppBarType.extend shrinks. Does not affect other types of app bar.
final
title Widget?
Title of the app bar.
final
titleTextStyle TextStyle?
AppBar titleTextStyle
final
type ZetaTopAppBarType
Defines the styles of the app bar.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ZetaTopAppBar>
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.
override
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