KContainer class

quick use Container

Inheritance

Constructors

KContainer({double margin = 0, double rightMargin = 0, double topMargin = 0, double buttomMargin = 0, double leftMargin = 0, double padding = 0, double leftPadding = 0, double buttomPadding = 0, double rightPadding = 0, double topPadding = 0, double? height, double? width, double radius = 0, Decoration? decoration, BoxBorder? border, Widget? child, ImageProvider<Object>? background, Function? onClick, Color color = const Color(0x00ffffff), Alignment? alignment, Key? key})

Properties

alignment Alignment?
same as Container alignment
final
background ImageProvider<Object>?
set background for Container
final
border BoxBorder?
set BoxBorder to BoxDecoration the same as Container
final
buttomMargin double
margin buttom use double if you not assignment use margin value
final
buttomPadding double
padding buttom use double if you not assignment use margin value
final
child Widget?
same as Container child
final
color Color
same as Container Color but if use decoration this attribute can not take effect
final
decoration Decoration?
set Decoration the same as Container
final
hashCode int
The hash code for this object.
no setterinherited
height double?
same as Container height
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftMargin double
margin left use double if you not assignment use margin value
final
leftPadding double
padding left use double if you not assignment use margin value
final
margin double
margin all use double
final
onClick Function?
if you set onClick Container use GestureDetector
final
padding double
padding all use double
final
radius double
set all rounded corners use double if you want set one rounded corner you can set decoration
final
rightMargin double
margin right use double if you not assignment use margin value
final
rightPadding double
padding right use double if you not assignment use margin value
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topMargin double
margin top use double if you not assignment use margin value
final
topPadding double
padding top use double if you not assignment use margin value
final
width double?
same as Container width
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
buildContainer() Container
use Container
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