Create simple swipe button to do something.

video_2023-03-04_15-53-44

Installation Add to pubspec.yaml: swipe_to_achieve:

import: "import package:swipe_to_achieve/swipe_to_achieve.dart"

Add to your code: SwipeToAchieve( width: 150.0, title: 'Swipe to achievement', textStyle: const TextStyle( fontSize: 15.0, fontWeight: FontWeight.bold, ), achievedBackgroundColor: Colors.amber, startBackgroundColor: Colors.cyan, startCircleColor: Colors.redAccent, circleRadius: 100.0, achievedCircleColor: Colors.greenAccent, onWhenEnd: (v) => print('Uzbekistan'), ),

onWhenReverse is optional.

Libraries

swipe_to_achieve