Milad-Akarie / skeletonizer

MIT License
348 stars 21 forks source link

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

Open Kamysek opened 1 month ago

Kamysek commented 1 month 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 week 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);