ShadcnSkeletonizerConfigLayer constructor
const
ShadcnSkeletonizerConfigLayer({})
Creates a ShadcnSkeletonizerConfigLayer.
The theme
and child
parameters are required for proper skeleton
configuration and content wrapping. Override parameters allow for
fine-tuned control of skeleton appearance at the layer level.
Parameters:
theme
(ThemeData, required): Theme for skeleton configuration calculationchild
(Widget, required): Content to wrap with skeleton configurationduration
(Duration?, optional): Pulse animation duration overridefromColor
(Color?, optional): Pulse start color overridetoColor
(Color?, optional): Pulse end color overrideenableSwitchAnimation
(bool?, optional): Switch animation behavior override
Example:
ShadcnSkeletonizerConfigLayer(
theme: Theme.of(context),
duration: Duration(milliseconds: 1200),
child: MyContentWidget(),
);
Implementation
const ShadcnSkeletonizerConfigLayer({
super.key,
required this.theme,
required this.child,
this.duration,
this.fromColor,
this.toColor,
this.enableSwitchAnimation,
});