upgrade: new version syntax
This commit is contained in:
@ -34,7 +34,7 @@ class HttpError extends StatelessWidget {
|
||||
fn!();
|
||||
},
|
||||
style: ButtonStyle(
|
||||
backgroundColor: MaterialStateProperty.resolveWith((states) {
|
||||
backgroundColor: WidgetStateProperty.resolveWith((states) {
|
||||
return Theme.of(context).colorScheme.primary.withAlpha(20);
|
||||
}),
|
||||
),
|
||||
|
@ -305,7 +305,7 @@ class VideoContent extends StatelessWidget {
|
||||
if (source == 'later') ...[
|
||||
IconButton(
|
||||
style: ButtonStyle(
|
||||
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
||||
padding: WidgetStateProperty.all(EdgeInsets.zero),
|
||||
),
|
||||
onPressed: () => onPressedFn?.call(),
|
||||
icon: Icon(
|
||||
|
Reference in New Issue
Block a user