Is it possible to start and stop the shimmering? I have a "ScannerButton" and when isScanning = true, the shimmer effect should start otherwise the button is non-shimmering.
Would it make sense to implement such a behavior or should I just swap the composable at the right time, e.g. when isScanning = true, then show shimmering version of button and when false show non-shimmering version. What do you think?
Is it possible to start and stop the shimmering? I have a "ScannerButton" and when
isScanning = true
, the shimmer effect should start otherwise the button is non-shimmering.Would it make sense to implement such a behavior or should I just swap the composable at the right time, e.g. when
isScanning = true
, then show shimmering version of button and when false show non-shimmering version. What do you think?