OudsTopAppBarConfig class
A configuration object for Material-specific properties.
- centerTitle: Whether to center the title. Defaults to false.
- expandedHeight: This Bar Top's height. Should be applied only for OudsTopBarSize.medium and OudsTopBarSize.large for OudsTopBarSize.small wll be ignored, this value will represent the maximum height that the bar will be allowed to expand.
- titleMaxLines: Specifies the number of lines the title can span for medium and large Bar Tops.
- showAvatar: Whether avatar support is enabled in the Bar Top.
Example usage:
Scaffold(
appBar: OudsTopBar(
title: "Profile",
size: OudsTopBarSize.large,
materialConfig: const OudsTopAppBarConfig(
centerTitle: true,
expandedHeight: 200.0,
titleMaxLines: 2,
showAvatar: true,
),
),
)
Constructors
- OudsTopAppBarConfig({bool centerTitle = false, double? expandedHeight, int titleMaxLines = 1, bool showAvatar = false})
-
const
Properties
- centerTitle → bool
-
final
- expandedHeight → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showAvatar → bool
-
final
- titleMaxLines → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited