iamshaunjp / iamshaunjp/flutter-masterclass
withOpacity is deprecated
Open
- Dominant language
- No language data
- Stars
- 145
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/iamshaunjp/flutter-masterclass/blob/455b9eedcd5304c1b347da7b5745d32c8c4aed2e/lib/theme.dart#L55 - from what i see, in the newest version the "withOpacity" method is deprecated. And it recommends to use "withValues"... after playing around with gemini i found this approach:
color: AppColors.secondaryColor.withAlpha(
(AppColors.secondaryColor.a * 125).round(),
),
but i don't understand why it works...
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.