ReadyAppBar class

A customizable AppBar widget that allows for both simple and complex title setups, optional subtitle, and flexible customization options.

Inheritance
Implemented types

Constructors

ReadyAppBar({Key? key, String? titleText, Widget? titleWidget, String? subtitle, Widget? leading, List<Widget>? actions, bool centerTitle = true, double elevation = 0, Color? backgroundColor, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, PreferredSizeWidget? bottom, IconThemeData? iconTheme, Color? foregroundColor, bool automaticallyImplyLeading = false, double? titleSpacing, ShapeBorder? shape, Widget? flexibleSpace})
Creates a ReadyAppBar widget.
const

Properties

actions List<Widget>?
Widgets displayed after the title, typically action buttons.
final
automaticallyImplyLeading bool
Whether to show the default back button when no leading is provided.
final
backgroundColor Color?
The background color of the AppBar.
final
bottom PreferredSizeWidget?
A widget displayed at the bottom of the AppBar, typically a TabBar.
final
centerTitle bool
Whether to center the title horizontally within the AppBar.
final
elevation double
The z-coordinate at which to place this AppBar.
final
flexibleSpace Widget?
A widget to display behind the toolbar and tab bar.
final
foregroundColor Color?
The color to use for text and icons in the AppBar.
final
hashCode int
The hash code for this object.
no setterinherited
iconTheme IconThemeData?
Defines the default color, opacity, and size for icons in the AppBar.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
A widget to display before the title, typically an IconButton.
final
preferredSize Size
The size this AppBar prefers to be. Accounts for the height of the bottom widget if present.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder?
The shape of the AppBar's container.
final
subtitle String?
Optional subtitle text displayed below the titleText.
final
subtitleTextStyle TextStyle?
The text style for the subtitle text.
final
titleSpacing double?
Horizontal spacing around the title content.
final
titleText String?
The primary title text to display if titleWidget is not provided.
final
titleTextStyle TextStyle?
The text style for the title text.
final
titleWidget Widget?
A custom widget to use as the AppBar title instead of titleText and subtitle.
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