Skip to content

Commit

Permalink
fix: settings Title alignment and play button card ripple effect in o…
Browse files Browse the repository at this point in the history
…ther platforms
  • Loading branch information
KRTirtho committed Nov 24, 2022
1 parent 3c6803b commit 3b6bf27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions lib/components/Settings/Settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
12 changes: 4 additions & 8 deletions lib/components/Shared/PlaybuttonCard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3b6bf27

Please sign in to comment.