- Add this to your package's pubspec.yaml file:
dependencies:
circle_wave_progress: ^0.0.4
- Install it: You can install packages from the command line:
$ flutter packages get
- Import it: Now in your Dart code, you can use:
import 'package:circle_wave_progress/circle_wave_progress.dart';
- Demo
class StatelessWidgetDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
backgroundColor: Colors.teal,
body: Center(
child: CircleWaveProgress(
size: 300,
borderWidth: 10.0,
backgroundColor: Colors.transparent,
borderColor: Colors.white,
waveColor: Colors.white54,
progress: 50,
))));
}
}