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, runSpacing: 8,
children: groupByValues.map((group) { children: groupByValues.map((group) {
return Row( return Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.max, // Take full width
mainAxisAlignment: MainAxisAlignment.start, // Align to left
children: [ children: [
Container( Container(
width: 12, width: 12,
@ -1251,8 +1252,8 @@ class ChartWidget extends StatelessWidget {
fontFamily: context.translate( fontFamily: context.translate(
'Roboto', 'Roboto',
'NotoKufi', 'NotoKufi',
) ),
) ),
), ),
], ],
); );
@ -3761,7 +3762,7 @@ class ChartWidget extends StatelessWidget {
if (_lastFormattedValue == formattedValue) { if (_lastFormattedValue == formattedValue) {
return const SizedBox.shrink(); // Empty widget for duplicates 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; _lastFormattedValue = formattedValue;
print('formattedValue - $formattedValue'); print('formattedValue - $formattedValue');