fix: analyzer

This commit is contained in:
Alex
2024-12-13 17:41:15 +03:00
parent 7715da6b8e
commit a58fbf1ee4
22 changed files with 65 additions and 64 deletions

View File

@@ -22,14 +22,14 @@ class ImtChartWidget extends StatelessWidget {
child: Row(
children: [
if (weightPoints.length > 0)
Text(
'${weightPoints.last.bmi.toStringAsFixed(2)}',
style: TextStyle(
color: Colors.black,
fontSize: 40,
fontWeight: FontWeight.w500,
Text(
'${weightPoints.last.bmi.toStringAsFixed(2)}',
style: TextStyle(
color: Colors.black,
fontSize: 40,
fontWeight: FontWeight.w500,
),
),
),
if (weightPoints.length > 1)
weightPoints.last.bmi > weightPoints[weightPoints.length - 2].bmi
? Icon(
@@ -66,9 +66,9 @@ class ImtChartWidget extends StatelessWidget {
labelStyle: TextStyle(
color: Colors.grey,
),
majorGridLines: MajorGridLines(dashArray: [1], color: Colors.grey.withOpacity(0.3)),
majorGridLines: MajorGridLines(dashArray: [1], color: Colors.grey.withValues(alpha: 0.3)),
axisLine: AxisLine(
color: Colors.grey.withOpacity(0.3),
color: Colors.grey.withValues(alpha: 0.3),
width: 0.4,
),
),
@@ -99,7 +99,7 @@ class ImtChartWidget extends StatelessWidget {
borderColor: appTheme.blueA400,
gradient: LinearGradient(
colors: [
appTheme.blueA400.withOpacity(0.14),
appTheme.blueA400.withValues(alpha: 0.14),
Colors.transparent,
],
begin: Alignment.topCenter,