Avatar Glow widget in flutter app is not working. How to solve this?

717 Views Asked by At

enter image description here

I am using avatar glow in floating action button. I am trying to make it glow, when I tapped on it., But this avatar glow widget is not working.. Can anyone give me solution? or what widget should use instead of this widget to glow the floating action button?

1

There are 1 best solutions below

0
Anirudh Pai On

enter image description here

 floatingActionButton: AvatarGlow(
          glowColor: Colors.blue,
          endRadius: 90.0,
          duration: Duration(milliseconds: 2000),
          repeat: true,
          showTwoGlows: true,
          repeatPauseDuration: Duration(milliseconds: 100),        
          child: FloatingActionButton(
                 onPressed: (){},
                 tooltip: 'Floating',
                 child: const Icon(Icons.mic),
        ),