Skip to content

Commit 5f5c514

Browse files
committed
feat(progress-indicator): update screen demo
1 parent 5f3ce62 commit 5f5c514

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

app/lib/ui/components/progress_indicator/linear_progress_indicator_demo_screen.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,17 @@ class _LinearProgressIndicatorDemoState
172172
customizationState!.selectedGapSize,
173173
),
174174
stopIndicator: customizationState!.hasStopIndicator,
175-
percentage: customizationState!.hasPercentage,
175+
percentage: customizationState!.hasHelperText
176+
? customizationState!.hasPercentage
177+
: false,
176178
spaceBeforePercentage: customizationState!.hasSpaceBefore,
177179
helperTextAlignment:
178180
ProgressIndicatorCustomizationUtils.getHelperTextAlignment(
179181
customizationState!.selectedAlignment,
180182
),
181-
helperText: customizationState!.helperText,
183+
helperText: customizationState!.hasHelperText
184+
? customizationState!.helperText
185+
: null,
182186
semanticLabel:
183187
context.l10n.app_components_progressIndicator_progress_a11y,
184188
),

0 commit comments

Comments
 (0)