I am trying to show CircularPercentIndicator with dynmaic value,i am getting value from api example like "12.7" i can show that into Text child of CircularPercentIndicator but i need to show the color of CircularPercentIndicator according to "12.7" i can only pass double value. i am using percent_indicator
Padding(
padding: const EdgeInsets.only(top: 25),
child: CircularPercentIndicator(
radius: 55.0,
lineWidth: 8.0,
animation: true,
percent: 0.7,
center: new Text(
data.percentage + "%",,
style: new TextStyle(
fontWeight: FontWeight.bold,
fontSize: 11.0),
),
circularStrokeCap: CircularStrokeCap.round,
progressColor: Colors.green[700],
),
)