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 摘要。