GlassContainer class

GlassContainer this class is main widget of this package and handle and manage all ui elements.

Inheritance

Constructors

GlassContainer({Key? key, double? width, double? height, required List<Widget> children, double borderWidth = 1.5, Color mainColor = Colors.white, Color shadowColor = Colors.black, EdgeInsetsGeometry innerPadding = const EdgeInsets.all(16.0), EdgeInsetsGeometry outerPadding = const EdgeInsets.all(8.0), double blurRadius = 16.0, double spreadRadius = 16.0, double sigmaX = 10.0, double sigmaY = 10.0, DecorationImage? decorationImage, double shadowOpacity = 0.1, double mainColorOpacity = 0.2, GlassBorderSide borderRadius = const GlassBorderSide(bottomSide: 16.0, topSide: 16.0)})
const

Properties

blurRadius double
blurRadius , this property used for rounded corners in boxShadow .
final
borderRadius GlassBorderSide
borderRadius , this property used for rounded corners in glass container .
final
borderWidth double
borderWidth , this property set size for border around of glass container .
final
children List<Widget>
children , this property is REQUIRED & hold content in glass container .
final
decorationImage DecorationImage?
decorationImage , this property set background image for glass container .
final
hashCode int
The hash code for this object.
no setterinherited
height double?
height , this property used for height of glass container .
final
innerPadding EdgeInsetsGeometry
innerPadding , this property set padding to inside of glass container .
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainColor Color
mainColor , this property used for background color of glass container & border of this widget (this color used in widget , by opacity 0.2) .
final
mainColorOpacity double
mainColorOpacity : this property used when users need set Opacity on mainColor of glass container.
final
outerPadding EdgeInsetsGeometry
outerPadding , this property set padding to outside of glass container .
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color
shadowColor , this property set color of shadow in boxShadow (this color used in widget , by opacity 0.1) .
final
shadowOpacity double
shadowOpacity : this property used when users need set shadow Opacity for outer of glass container.
final
sigmaX double
sigmaX : Users can set amount of blurring in X directions for increasing the blurring of the background .
final
sigmaY double
sigmaY : Users can set amount of blurring in Y directions for increasing the blurring of the background .
final
spreadRadius double
spreadRadius , this property used for shadow impact width in boxShadow .
final
width double?
width , this property used for width of glass container .
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