BankAppBar class

A themed AppBar that reads colours and elevation from BankThemeData.

Renders an optional two-line title (title + subtitle), suppresses the Material 3 surface tint so the bar stays a solid brand colour, and uses BankThemeData.elevationLow for shadow depth.

BankAppBar(
  title: 'Accounts',
  actions: [
    IconButton(icon: Icon(Icons.search_rounded), onPressed: () {}),
  ],
)
Inheritance
Implemented types

Constructors

BankAppBar({Key? key, String? title, String? subtitle, Widget? leading, List<Widget>? actions, Color? backgroundColor, Color? foregroundColor, bool centerTitle = false, PreferredSizeWidget? bottom, TextStyle? titleStyle, TextStyle? subtitleStyle, double? elevation, Color? shadowColor, double? toolbarHeight})
const

Properties

actions List<Widget>?
final
backgroundColor Color?
Overrides BankThemeData.surface as the background colour.
final
bottom PreferredSizeWidget?
Optional tab bar or search bar attached below the toolbar.
final
centerTitle bool
final
elevation double?
Overrides BankThemeData.elevationLow as the bar elevation.
final
foregroundColor Color?
Overrides BankThemeData.onSurface as the foreground colour.
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?
final
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
shadowColor Color?
Overrides BankThemeData.outline as the elevation shadow colour.
final
subtitle String?
Optional sub-heading rendered below title in a smaller style.
final
subtitleStyle TextStyle?
Merged over the computed subtitle style (default: BankTokens.bodySmall in BankThemeData.onSurfaceVariant).
final
title String?
Primary app-bar heading.
final
titleStyle TextStyle?
Merged over the computed title style (default: BankTokens.headlineSmall at w700 in the foreground colour).
final
toolbarHeight double?
Overrides kToolbarHeight as the toolbar height.
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, 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