mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-17 01:15: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(
|
return SafeArea(
|
||||||
child: PlatformScaffold(
|
child: PlatformScaffold(
|
||||||
appBar: PageWindowTitleBar(
|
appBar: PageWindowTitleBar(
|
||||||
center: PlatformText(
|
center: PlatformText.headline("Settings"),
|
||||||
"Settings",
|
centerTitle: true,
|
||||||
style: PlatformTheme.of(context).textTheme?.headline,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
body: Row(
|
body: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
@ -50,14 +50,10 @@ class PlaybuttonCard extends HookWidget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
final splash = usePlatformProperty<InteractiveInkFeatureFactory?>(
|
final splash = usePlatformProperty<InteractiveInkFeatureFactory?>(
|
||||||
(context) => PlatformProperty.multiPlatformGroup({
|
(context) => PlatformProperty.only(
|
||||||
InkRipple.splashFactory: {TargetPlatform.android, TargetPlatform.linux},
|
android: InkRipple.splashFactory,
|
||||||
NoSplash.splashFactory: {
|
other: NoSplash.splashFactory,
|
||||||
TargetPlatform.windows,
|
),
|
||||||
TargetPlatform.macOS,
|
|
||||||
TargetPlatform.iOS,
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
final iconBgColor = PlatformTheme.of(context).primaryColor;
|
final iconBgColor = PlatformTheme.of(context).primaryColor;
|
||||||
|
Loading…
Reference in New Issue
Block a user