LinearProgressIndicator constructor
const
LinearProgressIndicator({})
Creates a LinearProgressIndicator.
The component automatically handles both determinate and indeterminate modes
based on whether value is provided. Theming and visual effects can be
customized through individual parameters or via LinearProgressIndicatorTheme.
Parameters:
value(double?, optional): Progress completion (0.0-1.0) or null for indeterminatebackgroundColor(Color?, optional): Track background color overrideminHeight(double?, optional): Minimum indicator height overridecolor(Color?, optional): Progress fill color overrideprogressGradient(Gradient?, optional): Progress fill gradient overrideborderRadius(BorderRadiusGeometry?, optional): Container border radius overrideshowSparks(bool?, optional): Whether to show spark effectsdisableAnimation(bool?, optional): Whether to disable smooth transitions
Example:
LinearProgressIndicator(
value: 0.4,
color: Colors.green,
backgroundColor: Colors.grey.shade300,
minHeight: 8.0,
showSparks: true,
);
Implementation
const LinearProgressIndicator({
super.key,
this.value,
this.backgroundColor,
this.minHeight,
this.color,
this.progressGradient,
this.borderRadius,
this.showSparks,
this.disableAnimation,
});