import 'package:flutter/material.dart'; class TestProgress extends AnimatedWidget { TestProgress({ Key? key, required Animation animation, }) : super(key: key, listenable: animation); @override Widget build(BuildContext context) { final animation = listenable as Animation; return Transform.scale( alignment: Alignment.center, scale: animation.value, origin: Offset(-5, 0), child: Container( alignment: Alignment.center, padding: EdgeInsets.only(left: 0), child: Icon( Icons.star, color: Colors.yellow, )), ); } }