chart bug fix

This commit is contained in:
Juki-shiba 2025-04-25 10:48:10 +05:30
parent 760a41ce9f
commit f0d71f50b7

View File

@ -1236,7 +1236,8 @@ class ChartWidget extends StatelessWidget {
runSpacing: 8,
children: groupByValues.map((group) {
return Row(
mainAxisSize: MainAxisSize.min,
mainAxisSize: MainAxisSize.max, // Take full width
mainAxisAlignment: MainAxisAlignment.start, // Align to left
children: [
Container(
width: 12,
@ -1245,14 +1246,14 @@ class ChartWidget extends StatelessWidget {
),
SizedBox(width: 6),
Text(
group,
style: TextStyle(
fontSize: 14,
fontFamily: context.translate(
'Roboto',
'NotoKufi',
)
)
group,
style: TextStyle(
fontSize: 14,
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),
),
],
);
@ -3761,7 +3762,7 @@ class ChartWidget extends StatelessWidget {
if (_lastFormattedValue == formattedValue) {
return const SizedBox.shrink(); // Empty widget for duplicates
}
// Update the last formatted value for the next comparison
// Update the last formatted value for the next
_lastFormattedValue = formattedValue;
print('formattedValue - $formattedValue');