SundayAppBar class
A customizable app bar that adapts to different UI styles (Material, Cupertino, etc.).
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SundayAppBar
- Implemented types
Constructors
-
SundayAppBar({Key? key, required Widget middle, required Style style, Widget? leading, Widget? trailing, bool automaticallyImplyLeading = true, String? heroTag, List<
Widget> ? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, Color? backgroundColor, Brightness? brightness, double? elevation, IconThemeData? iconTheme, IconThemeData? actionsIconTheme, bool? centerTitle, double? titleSpacing, double? toolbarOpacity, double? bottomOpacity, bool transitionBetweenRoutes = true, double height = 150.0, Alignment alignment = Alignment.center, double titleWidth = 52.0, EdgeInsets padding = const EdgeInsets.all(0), BoxDecoration? decoration, Color? dividerColor, bool allowWallpaperTintingOverrides = true, bool enableBlur = false, Widget? title}) -
Creates a SundayAppBar.
const
Properties
-
actions
→ List<
Widget> ? -
A list of Widgets to display in a row after the middle widget.
final
- actionsIconTheme → IconThemeData?
-
The color, opacity, and size to use for trailing action icons.
final
- alignment → Alignment
-
The alignment of the app bar's content.
Defaults to Alignment.center.
final
- allowWallpaperTintingOverrides → bool
-
Whether to allow wallpaper tinting overrides.
Defaults to true.
final
- automaticallyImplyLeading → bool
-
Controls whether we should try to imply the leading widget if null.
final
- backgroundColor → Color?
-
The color to use for the app bar's material.
final
- bottom → PreferredSizeWidget?
-
This widget appears across the bottom of the app bar.
final
- bottomOpacity → double?
-
How opaque the bottom part of the app bar is.
final
- brightness → Brightness?
-
The brightness of the app bar's material.
final
- centerTitle → bool?
-
Whether the title should be centered.
final
- decoration → BoxDecoration?
-
The decoration to paint behind the app bar.
Defaults to null.
final
- dividerColor → Color?
-
The color of the divider between the app bar and the content.
Defaults to null.
final
- elevation → double?
-
The z-coordinate at which to place this app bar relative to its parent.
final
- enableBlur → bool
-
Whether to enable blur.
Defaults to false.
final
- flexibleSpace → Widget?
-
This widget is stacked behind the toolbar and the tab bar.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height of the app bar.
Defaults to kToolbarHeight.
final
- heroTag → String?
-
Optional hero tag for the app bar.
final
- iconTheme → IconThemeData?
-
The color, opacity, and size to use for app bar icons.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
A widget to display before the middle widget.
final
- middle → Widget
-
The primary content of the app bar.
final
- padding → EdgeInsets
-
The padding for the content inside the app bar.
Defaults to EdgeInsets.symmetric(horizontal: 8, vertical: 4.0).
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
- style → Style
-
The UI style to be used for the app bar.
final
- title → Widget?
-
Title of the appbar
final
- titleSpacing → double?
-
The spacing around middle content on the horizontal axis.
final
- titleWidth → double
-
The width of the title widget.
Defaults to 52.0.
final
- toolbarOpacity → double?
-
How opaque the toolbar part of the app bar is.
final
- trailing → Widget?
-
A widget to display after the middle widget.
final
- transitionBetweenRoutes → bool
-
Whether to transition between routes when the app bar is tapped.
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