TContainer class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- TContainer
Constructors
-
TContainer({double? width, double? height, double minWidth = 0.0, double maxWidth = double.infinity, double minHeight = 0.0, double maxHeight = double.infinity, Clip clipBehavior = Clip.hardEdge, TBorderShape borderShape = TBorderShape.adaptive, double borderRadius = 0.0, BorderSide borderSide = BorderSide.none, EdgeInsetsGeometry margin = EdgeInsets.zero, EdgeInsetsGeometry padding = EdgeInsets.zero, AlignmentGeometry alignment = Alignment.center, Color? color, Gradient? gradient, DecorationImage? decorationImage, double backgroundBlur = 0.0, BlendMode? blendMode, List<
BoxShadow> shadows = const [], Widget? child, Key? key}) -
const
Properties
- alignment → AlignmentGeometry
-
Align the child within the container.
final
- backgroundBlur → double
-
The amount of blur to apply to the background of the container. Defaults to
0.0.final - blendMode → BlendMode?
-
The blend mode to apply to the background of the container. Defaults to
null.final - borderRadius → double
-
The circular border radius of the container. Defaults to
0.0.final - borderShape → TBorderShape
-
The border shape of the container. Defaults to TBorderShape.adaptive.
final
- borderSide → BorderSide
-
The border outline's color and weight.
final
- child → Widget?
-
The child contained by the container.
final
- clipBehavior → Clip
-
The clip behavior of the container. Defaults to Clip.hardEdge.
final
- color → Color?
-
The background color to paint behind the child.
final
- decorationImage → DecorationImage?
-
An image to paint above the background color or gradient.
final
- gradient → Gradient?
-
The gradient to paint behind the child. If non-null, this will override color.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The height of the container. If null the container will expand to fit its child. Defaults to
null.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry
-
Empty space to surround the container. Defaults to EdgeInsets.zero.
final
- maxHeight → double
-
Maximum height constraint for the container. Defaults to double.infinity.
final
- maxWidth → double
-
Maximum width constraint for the container. Defaults to double.infinity.
final
- minHeight → double
-
Minimum height constraint for the container. Defaults to
0.0.final - minWidth → double
-
Minimum width constraint for the container. Defaults to
0.0.final - padding → EdgeInsetsGeometry
-
The amount of space by which to inset the child. Defaults to EdgeInsets.zero.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
BoxShadow> -
final
- width → double?
-
The width of the container. If null the container will expand to fit its child. Defaults to
null.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.
override
-
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