mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-25 03:51:02 +00:00
refactor: Migrate deprecated member
This commit is contained in:
@@ -38,8 +38,8 @@ class CustomSliverAppBar extends StatelessWidget {
|
||||
onPressed:
|
||||
onBackButtonPressed ?? () => Navigator.of(context).pop(),
|
||||
),
|
||||
backgroundColor: MaterialStateColor.resolveWith(
|
||||
(states) => states.contains(MaterialState.scrolledUnder)
|
||||
backgroundColor: WidgetStateColor.resolveWith(
|
||||
(states) => states.contains(WidgetState.scrolledUnder)
|
||||
? Theme.of(context).colorScheme.surface
|
||||
: Theme.of(context).canvasColor,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user