diff --git a/lib/features/diary/presentation/pages/diary_screen.dart b/lib/features/diary/presentation/pages/diary_screen.dart index e82d338f..e9474908 100644 --- a/lib/features/diary/presentation/pages/diary_screen.dart +++ b/lib/features/diary/presentation/pages/diary_screen.dart @@ -278,7 +278,7 @@ class _DiaryScreenState extends State { RangePointer( value: (chartData[0].intake / chartData[0].recommendation) * 100, width: 0.16, - color: chartData[0].color, + color: chartData[0].intake < chartData[0].recommendation ? chartData[0].color : Colors.red, sizeUnit: GaugeSizeUnit.factor, enableAnimation: true, cornerStyle: CornerStyle.bothCurve, // Rounded ends @@ -287,7 +287,7 @@ class _DiaryScreenState extends State { RangePointer( value: (chartData[1].intake / chartData[1].recommendation) * 100, width: 0.16, - color: chartData[1].color, + color: chartData[1].intake < chartData[1].recommendation ? chartData[1].color : Colors.red, sizeUnit: GaugeSizeUnit.factor, enableAnimation: true, cornerStyle: CornerStyle.bothCurve, @@ -297,7 +297,7 @@ class _DiaryScreenState extends State { RangePointer( value: (chartData[2].intake / chartData[2].recommendation) * 100, width: 0.16, - color: chartData[2].color, + color: chartData[2].intake < chartData[2].recommendation ? chartData[2].color : Colors.red, sizeUnit: GaugeSizeUnit.factor, enableAnimation: true, cornerStyle: CornerStyle.bothCurve, @@ -307,7 +307,7 @@ class _DiaryScreenState extends State { RangePointer( value: (chartData[3].intake / chartData[3].recommendation) * 100, width: 0.16, - color: chartData[3].color, + color: chartData[3].intake < chartData[3].recommendation ? chartData[3].color : Colors.red, sizeUnit: GaugeSizeUnit.factor, enableAnimation: true, cornerStyle: CornerStyle.bothCurve,