Merge pull request #4929 from pangeachat/4926-low-xp-doesnt-match-level-bar-background

fix: progress bar min width
This commit is contained in:
ggurdin 2025-12-22 13:13:04 -05:00 committed by GitHub
commit b9ce35d9ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(