fix: settings Title alignment and play button card ripple effect in other platforms

This commit is contained in:
Kingkor Roy Tirtho 2022-11-24 11:25:47 +06:00
parent 3c6803bb3f
commit 3b6bf27a98
2 changed files with 6 additions and 12 deletions

View File

@ -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,

View File

@ -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;