RoundContainer class

The RoundContainer is an all around widget that provides a container with pre-defined radius It can used as a button as well and to use it at it full potential please use neumorphism extension on it for eg. RoundContainer().neumorphism()

Inheritance
Available Extensions

Constructors

RoundContainer({Key? key, required Widget child, Color? color, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double hPadding = 0, double vPadding = 0, double hMargin = 0, double vMargin = 0, double radius = 12, double? height, double? width, List<BoxShadow>? boxShadow, Alignment? alignment, double borderWidth = 1.0, Color borderColor = Colors.transparent, VoidCallback? onTap, Color? splashColor})
const

Properties

alignment Alignment?
alignment just provides the alignment to child of RoundContainer
final
borderColor Color
borderColor gives color to the border by default its value is null
final
borderWidth double
borderWidth as the name suggest it provides width to the border by default its value is 1.0
final
boxShadow List<BoxShadow>?
boxShadow it takes a List<BoxShadow>
final
child Widget
The child basically can be any kind of widget that you desire
final
color Color?
This color is referred to the color of RoundContainer itself by default the color parameter of round container is null
final
hashCode int
The hash code for this object.
no setterinherited
height double?
height It is the height of whole RoundContainer
final
hMargin double
hMargin takes a double and that margin horizontally to the child of RoundContainer Note: please avoid any kind of margin while using neumorphism on RoundContainer
final
hPadding double
hPadding takes a double and that padding horizontally to the child of RoundContainer
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
This margin works as the margin that we use in other widgets but if you want to give only horizontal or vertical margin please refer to hMargin and vMargin respectively Note: please avoid any kind of margin while using neumorphism on RoundContainer
final
onTap VoidCallback?
This onTap can be provided to the RoundContainer in order to use it as a button
final
padding EdgeInsetsGeometry?
This padding works as the padding that we use in other widgets but if you want to give only horizontal or vertical padding please refer to hPadding and vPadding respectively
final
radius double
It takes double and provides it to the RoundContainer radius by default its value is 12
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashColor Color?
splashColor is just provided for the onTap functionality it has nothing to do with RoundContainer
final
vMargin double
vMargin takes a double and that margin vertically to the child of RoundContainer Note: please avoid any kind of margin while using neumorphism on RoundContainer
final
vPadding double
vPadding takes a double and that padding vertically to the child of RoundContainer
final
width double?
width It is the height of whole RoundContainer
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