UIProgressIndicator constructor

const UIProgressIndicator({
  1. Key? key,
  2. required double progressValue,
  3. double height = 10.0,
  4. double borderRadius = 5.0,
  5. Color activeColor = Colors.blue,
  6. Color inactiveColor = const Color(0xFFD6D6D6),
})

Creates a UIProgressIndicator with the given progressValue and optional customization for height, border radius, active and inactive colors.

progressValue is required and must be between 0.0 and 1.0.

Implementation

const UIProgressIndicator({
  super.key,
  required this.progressValue,
  this.height = 10.0,
  this.borderRadius = 5.0,
  this.activeColor = Colors.blue,
  this.inactiveColor = const Color(0xFFD6D6D6), // Grey[300] equivalent
});