File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ class _RadioExampleState extends State<RadioExample> {
6464 value: RadioType .backgroundColor,
6565 backgroundColor: WidgetStateColor .resolveWith ((Set <WidgetState > states) {
6666 if (states.contains (WidgetState .selected)) {
67- return Colors .greenAccent.withOpacity ( 0.5 );
67+ return Colors .greenAccent.withValues (alpha : 0.5 );
6868 } else {
69- return Colors .grey.shade300.withOpacity ( 0.3 );
69+ return Colors .grey.shade300.withValues (alpha : 0.3 );
7070 }
7171 }),
7272 ),
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ void main() {
3030 );
3131 expect (
3232 radioBackgroundColor.backgroundColor! .resolve (const < WidgetState > {WidgetState .selected}),
33- Colors .greenAccent.withOpacity ( 0.5 ),
33+ Colors .greenAccent.withValues (alpha : 0.5 ),
3434 );
3535 expect (
3636 radioBackgroundColor.backgroundColor! .resolve (const < WidgetState > {}),
37- Colors .grey.shade300.withOpacity ( 0.3 ),
37+ Colors .grey.shade300.withValues (alpha : 0.3 ),
3838 );
3939
4040 final Radio <example.RadioType > radioSide = tester.widget< Radio <example.RadioType >> (
You can’t perform that action at this time.
0 commit comments