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

View File

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