AOSSIE-Org / AOSSIE-Org/DocPilot

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

Đang mở
#39 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
stale
Ngôn ngữ chính
Dart
Star
18
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.