Skip to content
On this page

ProgressBar

A linear indicator for task progress.

ProgressBar in FluttyUIProgressBar in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

ProgressBar

const ProgressBar({
  super.key,
  this.value = 0,
  this.size,
  this.isIndeterminate = false,
  this.label,
  this.showPercentage = true,
  this.width,
  this.barHeight,
  this.labelSpacing,
  this.indeterminateSegmentFactor = 0.52,
  this.indeterminateDuration,
  this.trackColor,
  this.progressColor,
  this.labelColor,
  this.valueColor,
  this.labelFontSize,
  this.valueFontSize,
  this.borderRadius = 999,
});
ParameterTypeRequiredDefault
keyKey?Nonull
valuedoubleNo0
sizeComponentSize?Nonull
isIndeterminateboolNofalse
labelString?Nonull
showPercentageboolNotrue
widthdouble?Nonull
barHeightdouble?Nonull
labelSpacingdouble?Nonull
indeterminateSegmentFactordoubleNo0.52
indeterminateDurationDuration?Nonull
trackColorColor?Nonull
progressColorColor?Nonull
labelColorColor?Nonull
valueColorColor?Nonull
labelFontSizedouble?Nonull
valueFontSizedouble?Nonull
borderRadiusdoubleNo999

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/feedbacks/progress_bar/progress_bar.dart

This reference is generated from the ProgressBar declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI