AppDivider class

A horizontal or vertical divider with optional text.

Provides a visual separator between content sections with theme-aware styling.

Inheritance

Constructors

AppDivider.horizontal({Key? key, double? thickness, Color? color, double? indent, double? endIndent, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin})
Creates a horizontal divider.
const
AppDivider.vertical({Key? key, double? thickness, Color? color, double? height, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin})
Creates a vertical divider.
const
AppDivider.withText(String? text, {Key? key, TextStyle? textStyle, double? thickness, Color? color, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin})
Creates a horizontal divider with text in the center.
const

Properties

color Color?
The color of the divider.
final
endIndent double?
The amount of empty space to the trailing edge of the divider.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The height of the vertical divider.
final
indent double?
The amount of empty space to the leading edge of the divider.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
Optional margin.
final
orientation Axis
The orientation of the divider.
final
padding EdgeInsetsGeometry?
Optional padding.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
Optional text to display in the center of a horizontal divider.
final
textStyle TextStyle?
The style to use for the text.
final
thickness double?
The thickness of the divider line.
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