36 lines
515 B
Markdown
36 lines
515 B
Markdown
# Étape 18.6.1 - Correctif compilation `Colors.white45`
|
|
|
|
Erreur corrigée :
|
|
|
|
```text
|
|
lib/widgets/video_result_card.dart(...):
|
|
Member not found: 'white45'
|
|
```
|
|
|
|
Cause :
|
|
|
|
Flutter ne fournit pas de constante `Colors.white45`.
|
|
|
|
Correction :
|
|
|
|
```dart
|
|
Colors.white45
|
|
```
|
|
|
|
devient :
|
|
|
|
```dart
|
|
const Color(0x73FFFFFF)
|
|
```
|
|
|
|
Cela conserve environ 45 % d'opacité sans changer le reste de l'étape 18.6.
|
|
|
|
Test :
|
|
|
|
```powershell
|
|
cd "D:\07-Logiciels\23-youtube_personal"
|
|
flutter run -d windows
|
|
```
|
|
|
|
Pas besoin de `flutter clean`.
|