upgrade: new version syntax

This commit is contained in:
guozhigq
2024-06-08 13:29:36 +08:00
parent 57b8ebfa6f
commit f4b7f77e44
28 changed files with 52 additions and 56 deletions

View File

@ -253,8 +253,7 @@ class _LoginPageState extends State<LoginPage> {
IconButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.resolveWith(
(states) {
WidgetStateProperty.resolveWith((states) {
return Theme.of(context)
.colorScheme
.primary
@ -344,8 +343,7 @@ class _LoginPageState extends State<LoginPage> {
IconButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.resolveWith(
(states) {
WidgetStateProperty.resolveWith((states) {
return Theme.of(context)
.colorScheme
.primary