diff --git a/lib/components/Settings/Settings.dart b/lib/components/Settings/Settings.dart index 1049365f9..5efd3efd8 100644 --- a/lib/components/Settings/Settings.dart +++ b/lib/components/Settings/Settings.dart @@ -50,10 +50,8 @@ class Settings extends HookConsumerWidget { return SafeArea( child: PlatformScaffold( appBar: PageWindowTitleBar( - center: PlatformText( - "Settings", - style: PlatformTheme.of(context).textTheme?.headline, - ), + center: PlatformText.headline("Settings"), + centerTitle: true, ), body: Row( mainAxisAlignment: MainAxisAlignment.center, diff --git a/lib/components/Shared/PlaybuttonCard.dart b/lib/components/Shared/PlaybuttonCard.dart index 33d3558d7..cb4cf3e39 100644 --- a/lib/components/Shared/PlaybuttonCard.dart +++ b/lib/components/Shared/PlaybuttonCard.dart @@ -50,14 +50,10 @@ class PlaybuttonCard extends HookWidget { ); final splash = usePlatformProperty( - (context) => PlatformProperty.multiPlatformGroup({ - InkRipple.splashFactory: {TargetPlatform.android, TargetPlatform.linux}, - NoSplash.splashFactory: { - TargetPlatform.windows, - TargetPlatform.macOS, - TargetPlatform.iOS, - } - }), + (context) => PlatformProperty.only( + android: InkRipple.splashFactory, + other: NoSplash.splashFactory, + ), ); final iconBgColor = PlatformTheme.of(context).primaryColor;