AppHeader class

A premium top app bar component that integrates with the Flutoryx design system.

This component implements PreferredSizeWidget and can be used directly in Scaffold.appBar.

Inheritance
Implemented types

Constructors

AppHeader({Key? key, required String title, Widget? leading, List<Widget>? actions, bool? centerTitle, double? elevation, Color? backgroundColor, Color? foregroundColor, PreferredSizeWidget? bottom, SystemUiOverlayStyle? systemOverlayStyle})
Creates a premium app header.
const

Properties

actions List<Widget>?
A list of Widgets to display in a row after the title.
final
backgroundColor Color?
The background color to use for the app bar.
final
bottom PreferredSizeWidget?
This widget appears across the bottom of the app bar.
final
centerTitle bool?
Whether the title should be centered.
final
elevation double?
The z-coordinate at which to place this app bar relative to its parent.
final
foregroundColor Color?
The color to use for the app bar's content (title, icons, etc.).
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?
A widget to display before the title.
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
systemOverlayStyle SystemUiOverlayStyle?
The system overlay style to use for the system status bar.
final
title String
The primary widget displayed in the app bar.
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