mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-16 17:05:17 +00:00
fix: settings Title alignment and play button card ripple effect in other platforms
This commit is contained in:
parent
3c6803bb3f
commit
3b6bf27a98
@ -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,
|
||||
|
@ -50,14 +50,10 @@ class PlaybuttonCard extends HookWidget {
|
||||
);
|
||||
|
||||
final splash = usePlatformProperty<InteractiveInkFeatureFactory?>(
|
||||
(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;
|
||||
|
Loading…
Reference in New Issue
Block a user