From 261a4a759133ab1adb6c01ed3812485698297ea1 Mon Sep 17 00:00:00 2001 From: tahaalam Date: Wed, 15 Jul 2026 15:53:17 +0300 Subject: [PATCH] V4-60230 bug fix --- .../LineChartCurvedBloodPressure.dart | 25 +++++++++++++++++-- lib/widgets/charts/show_chart.dart | 5 ++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/lib/pages/medical/vital_sign/LineChartCurvedBloodPressure.dart b/lib/pages/medical/vital_sign/LineChartCurvedBloodPressure.dart index 2e1dcaa0..cf0a9df4 100644 --- a/lib/pages/medical/vital_sign/LineChartCurvedBloodPressure.dart +++ b/lib/pages/medical/vital_sign/LineChartCurvedBloodPressure.dart @@ -149,6 +149,7 @@ class LineChartCurvedBloodPressure extends StatelessWidget { titlesData: FlTitlesData( bottomTitles: AxisTitles( sideTitles: SideTitles( + showTitles: true, getTitlesWidget: (value, title) { TextStyle style = TextStyle( @@ -189,6 +190,16 @@ class LineChartCurvedBloodPressure extends StatelessWidget { // margin: 22, ), ), + topTitles: AxisTitles( + sideTitles: SideTitles( + showTitles: false, + ), + ), + rightTitles: AxisTitles( + sideTitles: SideTitles( + showTitles: false, + ), + ), leftTitles: AxisTitles( sideTitles: SideTitles( showTitles: true, @@ -197,6 +208,16 @@ class LineChartCurvedBloodPressure extends StatelessWidget { // fontWeight: FontWeight.bold, // fontSize: 10, // ), + getTitlesWidget: (cxt, value) { + var style = TextStyle( + color: Colors.black, + fontSize: 9, + ); + return Text( + "${value.formattedValue}", + style: style, + ); + }, interval: getMaxY() - getMinY() <= 500 ? 50 : getMaxY() - getMinY() <= 1000 @@ -277,7 +298,7 @@ class LineChartCurvedBloodPressure extends StatelessWidget { spots: spots, isCurved: true, color: Colors.red, - barWidth: 1.5, + barWidth: 3, isStrokeCapRound: true, dotData: FlDotData( show: false, @@ -290,7 +311,7 @@ class LineChartCurvedBloodPressure extends StatelessWidget { spots: spots2, isCurved: true, color: Theme.of(context).primaryColor, - barWidth: 1.5, + barWidth: 3, isStrokeCapRound: true, dotData: FlDotData( show: false, diff --git a/lib/widgets/charts/show_chart.dart b/lib/widgets/charts/show_chart.dart index 729c21b5..461e9996 100644 --- a/lib/widgets/charts/show_chart.dart +++ b/lib/widgets/charts/show_chart.dart @@ -170,11 +170,10 @@ class ShowChart extends StatelessWidget { getTitlesWidget: (cxt, value) { var style = TextStyle( color: Colors.black, - fontWeight: FontWeight.bold, - fontSize: 10, + fontSize: 9, ); return Text( - "", + "${value.formattedValue}", style: style, ); },