Skip to content

Commit 74ef5ab

Browse files
committed
Riverpod version : Make compatible with Flutter V3.27.0 : Replace MaterialStateProperty with WidgetStateProperty
1 parent a81d940 commit 74ef5ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/presentation/screen/intro_screen.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ class IntroScreen extends StatelessWidget {
2222
);
2323
},
2424
style: ButtonStyle(
25-
padding: MaterialStateProperty.all<EdgeInsetsGeometry?>(
25+
padding: WidgetStateProperty.all<EdgeInsetsGeometry?>(
2626
const EdgeInsets.all(8),
2727
),
2828
backgroundColor:
29-
MaterialStateProperty.all(Colors.white.withOpacity(0.4)),
30-
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
29+
WidgetStateProperty.all(Colors.white.withValues(alpha: 0.4)),
30+
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
3131
RoundedRectangleBorder(
3232
borderRadius: BorderRadius.circular(25.0),
3333
),
3434
),
3535
),
3636
icon: CircleAvatar(
37-
backgroundColor: Colors.white.withOpacity(0.2),
37+
backgroundColor: Colors.white.withValues(alpha: 0.2),
3838
child: const Icon(Icons.arrow_back, color: Colors.white),
3939
),
4040
label: Text(

0 commit comments

Comments
 (0)