CoderBar class
A fully customizable app bar supporting:
- custom leading widget
- auto iOS back button
- title as string or widget
- custom height, actions, and colors
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CoderBar
- Implemented types
Constructors
-
CoderBar({Key? key, String? title, Widget? titleWidget, Widget? leading, bool isBack = false, Color? backgroundColor, Color? iconColor, Color? textColor, double? elevation, double? height, bool centerTitle = false, bool forceMaterialTransparency = false, bool automaticallyImplyLeading = false, List<
Widget> ? actions, VoidCallback? onBack, PreferredSizeWidget? bottom}) -
Creates a flexible, themed app bar.
const
Properties
-
actions
→ List<
Widget> ? -
Actions
final
- automaticallyImplyLeading → bool
-
If true, Flutter auto adds a back button when there's a Navigator ancestor.
final
- backgroundColor → Color?
-
Background color
final
- bottom → PreferredSizeWidget?
-
Bottom widget (e.g., TabBar)
final
- centerTitle → bool
-
Center title
final
- elevation → double?
-
Elevation
final
- forceMaterialTransparency → bool
-
Whether to apply transparent background when scrolling. Defaults to
false.final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Custom height
final
- iconColor → Color?
-
Back icon color
final
- isBack → bool
-
Whether to show automatic back button
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
Custom leading icon/widget
final
- onBack → VoidCallback?
-
Callback when back pressed
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
- textColor → Color?
-
Title text color
final
- title → String?
-
Title text (optional if using titleWidget)
final
- titleWidget → Widget?
-
Custom title widget (overrides title)
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