fluttter shimmering effect is working but after shimmering effect image is not showing This is my code
Shimmer.fromColors(
baseColor: Colors.grey.shade300,
highlightColor: Colors.grey.shade100,
enabled: true,
child: Container(
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(30),
bottomRight: Radius.circular(30),
),
),
child: Image.asset(
'assets/hinas3.png',
fit: BoxFit.cover,
),
),
),
I tried to add shimmering effect on an assets image
the
enabledproperty should be supplied a variable that changes once your content loads. Since you have set it to hardcoded true it will keep shimmering....You will have to manually load the image if you want to have control over its loading cycle. Try this :