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.
StackedMeter
const StackedMeter({
super.key,
required this.segments,
this.label,
this.maxValue,
this.height = 10,
this.gap = 2,
this.showLegend = true,
this.showValues = true,
this.showPercentages = false,
this.valueFormatter,
this.trackColor,
this.borderRadius,
this.animate = true,
this.animationDuration,
this.animationCurve,
this.semanticLabel,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
segments | List<ChartSegment> | Yes | — |
label | String? | No | null |
maxValue | double? | No | null |
height | double | No | 10 |
gap | double | No | 2 |
showLegend | bool | No | true |
showValues | bool | No | true |
showPercentages | bool | No | false |
valueFormatter | String Function(double)? | No | null |
trackColor | Color? | No | null |
borderRadius | double? | No | null |
animate | bool | No | true |
animationDuration | Duration? | No | null |
animationCurve | Curve? | No | null |
semanticLabel | String? | No | null |
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/charts/stacked_meter/stacked_meter.dart
This reference is generated from the StackedMeter declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

