UIAppBar class
Constructors
UIAppBar ({Key ? key , Widget ? leading , bool automaticallyImplyLeading = true , Widget ? title , Widget ? subtitle , List <Widget > ? actions , Widget ? flexibleSpace , PreferredSizeWidget ? bottom , double ? elevation , Color ? shadowColor , Color ? borderColor , bool forceElevated = false , Color ? backgroundColor , Color ? foregroundColor , Brightness ? brightness , IconThemeData ? iconTheme , IconThemeData ? actionsIconTheme , TextTheme ? textTheme , bool primary = true , bool ? centerTitle , double ? titleSpacing , double ? collapsedHeight , double ? expandedHeight , bool floating = true , bool pinned = false , bool snap = false , bool stretch = false , double stretchTriggerOffset = 100.0 , AsyncCallback ? onStretchTrigger , ShapeBorder ? shape , double toolbarHeight = kToolbarHeight , double ? leadingWidth , bool ? backwardsCompatibility , TextStyle ? toolbarTextStyle , TextStyle ? titleTextStyle , SystemUiOverlayStyle ? systemOverlayStyle , DesignType ? designType , Widget ? background , UIAppBarScrollStyle scrollStyle = UIAppBarScrollStyle.pinned })
Creates a material design app bar that can be placed in a CustomScrollView .
const
Properties
actions
→ List <Widget > ?
A list of Widgets to display in a row after the title widget.
final
actionsIconTheme
→ IconThemeData ?
The color, opacity, and size to use for the icons that appear in the app
bar's actions .
final
automaticallyImplyLeading
→ bool
Controls whether we should try to imply the leading widget if null.
final
background
→ Widget ?
final
backgroundColor
→ Color ?
The fill color to use for an app bar's Material .
final
backwardsCompatibility
→ bool ?
If true, preserves the original defaults for the backgroundColor ,
iconTheme , actionsIconTheme properties, and the original use of
the textTheme and brightness properties.
final
borderColor
→ Color ?
final
bottom
→ PreferredSizeWidget ?
This widget appears across the bottom of the app bar.
final
brightness
→ Brightness ?
This property is obsolete, please use systemOverlayStyle instead.
final
centerTitle
→ bool ?
Whether the title should be centered.
final
collapsedHeight
→ double ?
Defines the height of the app bar when it is collapsed.
final
designType
→ DesignType ?
final
elevation
→ double ?
The z-coordinate at which to place this app bar relative to its parent.
final
Whether the title should be wrapped with header Semantics .
final
expandedHeight
→ double ?
The size of the app bar when it is fully expanded.
final
flexibleSpace
→ Widget ?
This widget is stacked behind the toolbar and the tab bar. Its height will
be the same as the app bar's overall height.
final
floating
→ bool
Whether the app bar should become visible as soon as the user scrolls
towards the app bar.
final
forceElevated
→ bool
Whether to show the shadow appropriate for the elevation even if the
content is not scrolled under the AppBar .
final
foregroundColor
→ Color ?
The default color for Text and Icon s within the app bar.
final
hashCode
→ int
The hash code for this object.
no setter inherited
iconTheme
→ IconThemeData ?
The color, opacity, and size to use for toolbar icons.
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
leading
→ Widget ?
A widget to display before the toolbar's title .
final
leadingWidth
→ double ?
Defines the width of AppBar.leading widget.
final
onStretchTrigger
→ AsyncCallback ?
The callback function to be executed when a user over-scrolls to the
offset specified by stretchTriggerOffset .
final
pinned
→ bool
Whether the app bar should remain visible at the start of the scroll view.
final
primary
→ bool
Whether this app bar is being displayed at the top of the screen.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
scrollStyle
→ UIAppBarScrollStyle
final
shadowColor
→ Color ?
The color of the shadow below the app bar.
final
shape
→ ShapeBorder ?
The shape of the app bar's Material as well as its shadow.
final
snap
→ bool
If snap and floating are true then the floating app bar will "snap"
into view.
final
stretch
→ bool
Whether the app bar should stretch to fill the over-scroll area.
final
stretchTriggerOffset
→ double
The offset of overscroll required to activate onStretchTrigger .
final
subtitle
→ Widget ?
final
systemOverlayStyle
→ SystemUiOverlayStyle ?
Specifies the style to use for the system overlays (e.g. the status bar on
Android or iOS, the system navigation bar on Android).
final
textTheme
→ TextTheme ?
The typographic styles to use for text in the app bar. Typically this is
set along with brightness backgroundColor , iconTheme .
final
title
→ Widget ?
The primary widget displayed in the app bar.
final
titleSpacing
→ double ?
The spacing around title content on the horizontal axis. This spacing is
applied even if there is no leading content or actions . If you want
title to take all the space available, set this value to 0.0.
final
titleTextStyle
→ TextStyle ?
The default text style for the AppBar's title widget.
final
toolbarHeight
→ double
Defines the height of the toolbar component of an AppBar .
final
toolbarTextStyle
→ TextStyle ?
The default text style for the AppBar's leading , and
actions widgets, but not its title .
final