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

@@ -59,12 +59,12 @@ class _WeightChartWidgetState extends State<WeightChartWidget> {
? Icon(
Icons.arrow_drop_up,
size: 40,
color: Colors.grey.withOpacity(0.4),
color: Colors.grey.withValues(alpha: 0.4),
)
: Icon(
Icons.arrow_drop_down,
size: 40,
color: Colors.grey.withOpacity(0.4),
color: Colors.grey.withValues(alpha: 0.4),
),
],
),
@@ -93,9 +93,9 @@ class _WeightChartWidgetState extends State<WeightChartWidget> {
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,
),
),
@@ -227,7 +227,7 @@ class _WeightChartWidgetState extends State<WeightChartWidget> {
borderColor: appTheme.blueA400,
gradient: LinearGradient(
colors: [
appTheme.blueA400.withOpacity(0.14),
appTheme.blueA400.withValues(alpha: 0.14),
Colors.transparent,
],
begin: Alignment.topCenter,