AurisContainer class

The foundation primitive of the Auris custom-widget library: a chamfered box that paints a fill, an AurisChamferBorder outline, and an optional depth glow, then clips its child to the same notched silhouette via a ChamferClipper (§spec:custom-widgets).

Every other display widget (badge, panel, notification, stat card …) composes from this primitive rather than re-deriving the chamfer, so the corner geometry, glow, and clipping behave identically everywhere.

Design values come from the resolved AurisScheme read off the ambient theme, never from raw tokens: cut defaults to the medium bevel role, fill to the panel surface, and borderColor to the resting border. The optional depth is an AurisDepth (depth-by-intent) whose glow is cast behind the box — Material elevation is never used (§spec:scheme).

Inheritance

Constructors

AurisContainer({Key? key, Widget? child, double? cut, Color? fill, Color? borderColor, double borderWidth = 1.0, AurisDepth? depth, EdgeInsetsGeometry? padding, double? width, double? height, AlignmentGeometry? alignment, bool clipChild = true})
Creates a chamfered container.
const

Properties

alignment AlignmentGeometry?
Optional alignment of child within the box.
final
borderColor Color?
The outline color. Defaults to the scheme's resting border. A transparent color (or borderWidth of 0) draws no outline.
final
borderWidth double
The outline stroke width.
final
child Widget?
The clipped, padded content.
final
clipChild bool
Whether to clip child to the chamfered silhouette. Defaults to true so content never bleeds past the cut corners.
final
cut double?
The 45° chamfer leg length. Defaults to the scheme's medium bevel role.
final
depth AurisDepth?
Optional depth-by-intent glow cast behind the box (e.g. scheme.depthActive). When null, no glow is drawn.
final
fill Color?
The fill color. Defaults to the scheme's panel surface.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Fixed height, if any.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsetsGeometry?
Inner padding applied to child.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double?
Fixed width, if any.
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