TinyContainer class

Inheritance

Constructors

TinyContainer({Key key, double maxWidth, double maxHeight, double width, double height, double fontSize: 14, double textScaleFactor: 1.0, String text, String fontFamily: "Hacen", Color backgroundColor: const Color(0xFF6D6DFF), Color textColor: Colors.white, FontWeight fontWeight: FontWeight.normal, TextDecoration textDecoration, VoidCallback onTap, BoxFit boxFit: BoxFit.scaleDown, Widget child, AlignmentGeometry alignment: Alignment.center, EdgeInsets outerPadding, EdgeInsets innerPadding, BoxBorder border, List<BoxShadow> boxShadow, TextAlign textAlign})
This Class can be used as Const as it requires no non-const Attr.
const

Properties

alignment AlignmentGeometry
AlignmentGeometry of Container child, Defaults to : Alignment.center.
final
backgroundColor Color
BackgroundColor of Container, Defaults to : Color(0xFF6D6DFF).
final
border BoxBorder
if non-null border is given to Container, Defaults to : Null.
final
boxFit BoxFit
BoxFit given to FittedBox widget if child == null. Defaults to : BoxFit.scaleDown.
final
boxShadow → List<BoxShadow>
if non-null boxShadow is given to Container, Defaults to : Null.
final
child Widget
Child Widget given to the Container, this makes any Text attr useless Defaults to : Null.
final
fontFamily → String
Text given to Text widget if child == null. Defaults to : "Hacen".
final
fontSize → double
FontSize for text if given, Defaults to : 14.
final
fontWeight FontWeight
FontWeight given to Text widget if child == null. Defaults to : FontWeight.normal.
final
height → double
Minimum allowed height, it's assigned to internal Container. Defaults to : MediaQuery.of(context).size.height * 0.03.
final
innerPadding EdgeInsets
if non-null innerPadding is given to Container, Defaults to : Null.
final
maxHeight → double
Requires the child to have exactly this height, it's assigned to external SizedBox. Defaults to : MediaQuery.of(context).size.height * 0.06.
final
maxWidth → double
Requires the child to have exactly this width, it's assigned to external SizedBox. Defaults to : MediaQuery.of(context).size.width * 0.25.
final
onTap VoidCallback
If non-null, TinyContainer is wrapped in InkWell. Defaults to : Null.
final
outerPadding EdgeInsets
if non-null TinyContainer is wrapped in Padding, Defaults to : Null.
final
text → String
Text given to Text widget if child == null. If Empty String it gets passed to _fixEmptyText to return " "
final
textAlign TextAlign
if non-null textAlign is given to Text, Defaults to : Null.
final
textColor Color
Color given to Text widget if child == null. Defaults to : Colors.white.
final
textDecoration TextDecoration
TextDecoration given to Text widget if child == null, Defaults to : Null.
final
textScaleFactor → double
TextScaleFactor for Text if given, Defaults to : 1.0.
final
width → double
Minimum allowed width, it's assigned to internal Container. Defaults to : MediaQuery.of(context).size.width * 0.15.
final
hashCode → int
The hash code for this object.
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

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.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.debug}) → String
Returns 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 ==(dynamic other) → bool
The equality operator.
inherited