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(