hnvn / flutter_shimmer

A package provides an easy way to add shimmer effect in Flutter project
BSD 3-Clause "New" or "Revised" License
1.77k stars 200 forks source link

ShimmerDirection.ttb cuts off with Shimmer.fromColors #68

Open Curstantine opened 1 year ago

Curstantine commented 1 year ago

The transition cuts off right before the end when using ShimmerDirection.ltb. Not reproducible with other options.

return Shimmer.fromColors(
    baseColor: colors.surface,
    highlightColor: colors.surfaceVariant,
    direction: ShimmerDirection.ttb,
    child: Column(mainAxisSize: MainAxisSize.min, children: [
        Padding(
            padding: Edges.horizontalLarge,
            child: Container(width: 100, color: colors.surface)),
        for (final _ in List.generate(5, (index) => index))
            ListTile(
                leading: Container(
                    height: 24,
                    width: 24,
                    decoration:  BoxDecoration(
                        color: colors.surface,
                        shape: BoxShape.circle,
                    ),
                ),
                title: Container(
                    height: 16,
                    width: 150,
                    decoration: BoxDecoration(
                        color: colors.surface,
                        borderRadius: Corners.allFull,
                    ),
                )
            ),
        ],
    ),
);

https://github.com/hnvn/flutter_shimmer/assets/69104500/14ca5bd1-5cba-45fb-99e4-4bbce3b95ea5

sed1ka commented 11 months ago

This issue also happen with ShimmerDirection.btt