LitAppBar class
The default CustomAppBar implementetion.
The background Color will depend on the provided darkMode
value.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LitAppBar
- Implemented types
Constructors
-
LitAppBar({Key? key, required String title, TextStyle textStyle = LitSansSerifStyles.subtitle2, bool elevated = false, List<
BoxShadow> boxShadow = const [BoxShadow(blurRadius: 12.0, color: Colors.black26, offset: Offset(0, 4), spreadRadius: 1.0)], Color backgroundColor = Colors.white, Color backButtonBackgroundColor = LitBackButtonDefaultStyling.backgroundColor, Color backButtonIconColor = LitBackButtonDefaultStyling.iconColor, bool alignRight = false}) -
Creates a LitAppBar.
const
Properties
- alignRight → bool
-
States whether to align the title to the right if there will be a back
button displayed on the left. This will increase the space the title can
occupy to avoid a clipped title.
final
- backButtonBackgroundColor → Color
-
final
- backButtonIconColor → Color
-
final
- backgroundColor → Color
-
final
-
boxShadow
→ List<
BoxShadow> -
final
- elevated → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle
-
final
- title → String
-
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
Static Properties
- height → double
-
The app bar height is depending on the abstract CustomAppBar height.
final