A customizable circular progress widget for Flutter, designed to display progress using a gradient arc with an optional background color.
import 'package:gradient_circular_progress_indicator/gradient_circular_progress_indicator.dart';
GradientCircularProgressIndicator(
progress: 0.75, // Specify the progress value between 0 and 1
gradient: LinearGradient(
colors: [Colors.blue, Colors.green],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
backgroundColor: Colors.grey, // Specify the background color
child: Text('75%'), // Optional child widget
)- progress: A double value between 0 and 1 representing the progress.
- gradient: A gradient used to color the progress arc.
- backgroundColor: The background color behind the unfilled portion.
- child: An optional child widget to place on top of the progress.
- size: size of the widget
- stroke: stroke width
[output1][assets/output1.jpg]
Found a bug or have a feature request? Open an issue. Contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.
Add this line to your pubspec.yaml file:
dependencies:
gradient_cicular_progress_indicator: ^0.0.4Then run
flutter pub getDilip Yadav Connect with me on LinkedIn.