Provides a customizable linear progress indicator widget for Flutter applications, offering animation and visual customization options.
Features
Getting started
dependencies:
custom_linear_progress_indicator: ^0.0.4
How to use
import 'package:custom_linear_progress_indicator/custom_linear_progress_indicator.dart';
Usage
// you can click double tap to reset progress
CustomLinearProgressIndicator(
maxValue: 1, // new
value: progressPercent,
minHeight: 50,
borderWidth: 4,
borderColor: Colors.yellow.shade900,
borderStyle: BorderStyle.solid,
colorLinearProgress: Colors.yellow,
animationDuration: 1000,
borderRadius: 5,
linearProgressBarBorderRadius: 10,
backgroundColor: Colors.green.shade50,
progressAnimationCurve: Curves.bounceInOut, // new
alignment: Alignment.center, // new
showPercent: true,// new
percentTextStyle: const TextStyle(fontWeight: FontWeight.bold),
gradientColors: const [Colors.purple, Colors.blue, Colors.blueAccent], // new
onProgressChanged: (double value) {
// new
log('Progress: $value');
},
),
See /example
folder for better understanding.
Additional information
If you have any issues, questions, or suggestions related to this package, please feel free to contact us at swan.dev1993@gmail.com. We welcome your feedback and will do our best to address any problems or provide assistance. For more information about this package, you can also visit our GitHub repository where you can find additional resources, contribute to the package's development, and file issues or bug reports. We appreciate your contributions and feedback, and we aim to make this package as useful as possible for our users.
Thank you for using our package, and we look forward to hearing from you!