Use Skeleton annotations to customize behavior
mainSkeleton annotations allow you to change how specific widgets are treated when Skeletonizer is enabled. These annotations have no effect on the real layout when enabled is false.
Common annotations include:
Skeleton.ignore: The widget will not be skeletonized.Skeleton.leaf: Marks a container as a leaf, which is painted using a shader paint.Skeleton.keep: The widget is not skeletonized but is painted exactly as is.Skeleton.shade: The widget is not skeletonized but is shaded by a shader mask (required forCustomPainterwidgets).Skeleton.replace: Replaces the widget with a placeholder (useful for widgets that fail with fake data, likeNetworkImage).Skeleton.unite: Prevents multiple small bones from being drawn separately, treating them as one single bone.Skeleton.ignorePointers: The widget will ignore pointer events when skeletonizer is enabled.