diff --git a/lib/presentation/Screens/charts/widgets/chart_widget.dart b/lib/presentation/Screens/charts/widgets/chart_widget.dart index e28db87d..93ae342e 100644 --- a/lib/presentation/Screens/charts/widgets/chart_widget.dart +++ b/lib/presentation/Screens/charts/widgets/chart_widget.dart @@ -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');