AOSSIE-Org / AOSSIE-Org/DocPilot

fix: deprecated withOpacity() calls should use Color.withValues()

未关闭
#39 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
stale
主要语言
Dart
星标
18
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

## Description

Several files in the codebase use the deprecated `Color.withOpacity()` method. As of Flutter 3.27+, `withOpacity()` is deprecated in favor of `Color.withValues(alpha: ...)`, which provides better color space handling.

## Affected Files

- `lib/features/transcription/presentation/transcription_screen.dart` — 4 occurrences
- `lib/screens/transcription_detail_screen.dart` — 2 occurrences
- `lib/screens/prescription_screen.dart` — (via `ElevatedButton` disabled states)

## Expected Fix

Replace all `.withOpacity(x)` calls with `.withValues(alpha: x)`.

## References
- [Flutter deprecation notice](https://api.flutter.dev/flutter/dart-ui/Color/withOpacity.html)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。