ContentPlaceholder class

Inheritance
Implementers

Constructors

ContentPlaceholder({double width, double height, BuildContext context, EdgeInsets spacing: _Styles.defaultSpacing, Color bgColor: _Styles.defaultPlaceholderColor, Color highlightColor: _Styles.defaultPlaceholderHighlight, bool isAnimationEnabled: true, double borderRadius: _Styles.defaultBorderRadius, Widget child})

Properties

bgColor Color
Blocks background color
final
borderRadius double
final
child Widget
If child is null you will get one block. If child contains some widget, the widget will be covered with placeholder.
final
context BuildContext
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
height double
final
highlightColor Color
Shimmer animation gradient color.
final
isAnimationEnabled bool
Is shimmer animation needed. Default is true.
final
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
spacing EdgeInsets
final
width double
Default width will be 100%.
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. [...]
@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.info}) 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 ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited

Static Methods

block({double width, double height, BuildContext context, double topSpacing: 0, double leftSpacing: 0, double rightSpacing: 0, double bottomSpacing: _Styles.defaultSpacingSingle, double borderRadius: _Styles.defaultBorderRadius}) Widget
Single block for group of shapes. block should be used only inside a ContentPlaceholder.