chart bug fix
This commit is contained in:
parent
760a41ce9f
commit
f0d71f50b7
@ -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,
|
||||||
@ -1245,14 +1246,14 @@ class ChartWidget extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
SizedBox(width: 6),
|
SizedBox(width: 6),
|
||||||
Text(
|
Text(
|
||||||
group,
|
group,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
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');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user