ContextualAppBar<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ContextualAppBar
Constructors
-
ContextualAppBar({Key? key, required CounterBuilder counterBuilder, required List<
ContextualAction< contextualActions, bool automaticallyImplyLeading = true, IconData? closeIcon = Icons.close, double? leadingWidth, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation, double? scrolledUnderElevation, ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate, Color? shadowColor, Color? surfaceTintColor, ShapeBorder? shape, Color? backgroundColor, Color? foregroundColor, IconThemeData? iconTheme, IconThemeData? actionsIconTheme, bool primary = true, bool? centerTitle, bool excludeHeaderSemantics = false, double? titleSpacing, double toolbarOpacity = 1.0, double bottomOpacity = 1.0, double? toolbarHeight, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle, SystemUiOverlayStyle? systemOverlayStyle, bool forceMaterialTransparency = false, Clip? clipBehavior})T> > -
const
Properties
- 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
- backgroundColor → Color?
-
The fill color to use for an app bar's Material.
final
- bottom → PreferredSizeWidget?
-
This widget appears across the bottom of the app bar.
final
- bottomOpacity → double
-
How opaque the bottom part of the app bar is.
final
- centerTitle → bool?
-
Whether the title should be centered.
final
- clipBehavior → Clip?
-
The content will be clipped (or not) according to this option.
final
- closeIcon → IconData?
-
Icon to use to close Action mode
final
-
contextualActions
→ List<
ContextualAction< T> > -
Widgets to display after the counterBuilder widget.
final
- counterBuilder → CounterBuilder
-
The primary widget displayed in the app bar.
The itemsCount property gives you the count of the selected items.
Typically a Text widget containing a description of the current contents
of the app.
final
- elevation → double?
-
The z-coordinate at which to place this app bar relative to its parent.
final
- excludeHeaderSemantics → bool
-
Whether the title should be wrapped with header Semantics.
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
- forceMaterialTransparency → bool
-
Forces the AppBar's Material widget type to be MaterialType.transparency
(instead of Material's default type).
final
- foregroundColor → Color?
-
The default color for Text and Icons within the app bar.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
finalinherited
- leadingWidth → double?
-
Defines the width of AppBar.leading widget.
final
- notificationPredicate → ScrollNotificationPredicate
-
A check that specifies which child's ScrollNotifications should be
listened to.
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 setterinherited
- scrolledUnderElevation → double?
-
The elevation that will be used if this app bar has something
scrolled underneath it.
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
- surfaceTintColor → Color?
-
The color of the surface tint overlay applied to the app bar's
background color to indicate elevation.
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
- titleSpacing → double?
-
The spacing around
title
content on the horizontal axis. This spacing is applied even if there is noleading
content oractions
. If you wanttitle
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
- toolbarOpacity → double
-
How opaque the toolbar part of the app bar is.
final
- toolbarTextStyle → TextStyle?
-
The default text style for the AppBar's
leading
, andactions
widgets, but not itstitle
.final
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}) → 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