From 5cf83f73824adf664167c5d2544d00eb6bdcc010 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Mon, 22 Dec 2025 13:12:34 -0500 Subject: [PATCH] fix: progress bar min width --- .../progress_bar/animated_progress_bar.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/pangea/analytics_summary/progress_bar/animated_progress_bar.dart b/lib/pangea/analytics_summary/progress_bar/animated_progress_bar.dart index 94bf85c27..d8e04d305 100644 --- a/lib/pangea/analytics_summary/progress_bar/animated_progress_bar.dart +++ b/lib/pangea/analytics_summary/progress_bar/animated_progress_bar.dart @@ -1,3 +1,5 @@ +import 'dart:math'; + import 'package:flutter/material.dart'; import 'package:fluffychat/config/app_config.dart'; @@ -45,7 +47,9 @@ class AnimatedProgressBar extends StatelessWidget { child: AnimatedContainer( duration: duration ?? FluffyThemes.animationDuration, height: height, - width: constraints.maxWidth * widthPercent, + width: widthPercent == 0 + ? 0 + : max(18, constraints.maxWidth * widthPercent), decoration: BoxDecoration( color: barColor, borderRadius: const BorderRadius.all(