flutter_watch_rewards 1.1.2 flutter_watch_rewards: ^1.1.2 copied to clipboard
A widget that display a circular progress indicator with a watch rewards value
Watch Rewards #
A customizable Flutter widget that displays a circular progress indicator with rewards functionality.
This widget shows a circular progress indicator that fills up over time, and displays a reward value that increases at specified intervals.
Example #
Here's an example of how to use WatchRewards:
WatchRewards(
radius: 32.0,
foregroundColor: Colors.red,
backgroundColor: Colors.pink.shade50,
buttonColorBegin: Colors.amber,
buttonColorEnd: Colors.pink,
buttonTitle: 'Claim',
value: 100.0,
stepValue: 10.0,
watchInteval: 5,
icon: Icon(Icons.star, color: Colors.amber.shade500),
onValueChanged: (value) => print('New value: $value'),
onTap: () => print('Button tapped'),
)