AOSSIE-Org / AOSSIE-Org/DocPilot

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

オープン
#39 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。