WxBorder class
A customizable border widget for Flutter that supports both background and foreground decoration.
This widget allows you to draw a border around its child widget, optionally filling the background
or outlining the foreground. You can configure the shape of the border using a ShapeBorder
object,
and optionally specify the clipping behavior for the child content.
By default, the border is drawn in the foreground. Set the isBackground
property to true
to
fill the background area instead.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- WxBorder
Constructors
- WxBorder({Key? key, bool isBackground = false, Clip clipBehavior = Clip.none, TextDirection? textDirection, required ShapeBorder shape, Widget? child})
-
Creates a new WxBorder widget.
const
Properties
- child → Widget?
-
The child widget to be placed inside the border.
final
- clipBehavior → Clip
-
The clip behavior to apply to the child widget. Defaults to
Clip.none
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isBackground → bool
-
Whether to draw the border in the background or foreground. Defaults to
false
(foreground).final - isForeground → bool
-
Whether the border is drawn in the foreground. This is a getter for convenience.
no setter
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ShapeBorder
-
The shape of the border to draw. This is required.
final
- textDirection → TextDirection?
-
The text direction to use for drawing the border.
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}) → 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