loader function
Implementation
Widget loader(
_animation, color
) {
return Center(
child: ScaleTransition(
scale: _animation,
child: Container(
width: 50,
height: 50,
child: Image.asset(
'assets/whitelogo.png',
width: 50.0,
fit: BoxFit.fitWidth,
color: color,
),
),
),
);
}