ShimmerConfig class
create_user: zhengzaihong email:1096877329@qq.com create_date: 2024/3/11 create_time: 17:30 describe: 实现一个微光加载效果 全局配置 + 局部覆盖 微光滑动效果 占位自动生成 SmartShimmerPlaceholder Grid/Column/Row 全支持 支持手动配置占位布局 全局配置
Constructors
- ShimmerConfig.new({LinearGradient gradient = const LinearGradient(colors: [Color(0xFFEBEBF4), Color(0xFFF4F4F4), Color(0xFFEBEBF4)], stops: [0.1, 0.3, 0.4], begin: Alignment(-1, -0.3), end: Alignment(1, 0.3)), Duration period = const Duration(milliseconds: 1500), Curve curve = Curves.linear})
-
const
Properties
- curve → Curve
-
final
- gradient → LinearGradient
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- period → Duration
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- global → ShimmerConfig
-
no setter
Static Methods
-
setGlobal(
ShimmerConfig config) → void