Milad-Akarie / skeletonizer

MIT License
367 stars 24 forks source link

Feature Request: Animation Support for Slivers (SwitchAnimationConfig for SliverSkeletonizer) #42

Open Kamysek opened 2 months ago

Kamysek commented 2 months ago

Hello,

It would be great if skeletonizer also supported animations for Slivers. I was wondering if there is a specific reason why this functionality is not currently available. Slivers are commonly used in complex layouts, and having animated skeletons for them would be a valuable addition. Any insight would be appreciated!

Thanks!

marcorossitb commented 1 month ago

Same, it's not clear to me why it was disabled here (enableSwitchAnimation: false)

  /// Creates a [SliverSkeletonizer] widget
  const SliverSkeletonizer({
    required super.child,
    super.key,
    super.enabled = true,
    super.effect,
    super.textBoneBorderRadius,
    super.ignoreContainers,
    super.justifyMultiLineText,
    super.containersColor,
    super.ignorePointers,
  }) : super._(enableSwitchAnimation: false);