Skip to content

Commit

Permalink
fix: On the product page, the Ripple on the back button doesn't work (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed May 26, 2023
1 parent 8fee456 commit 950c18b
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions packages/smooth_app/lib/generic_lib/widgets/smooth_back_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,23 @@ class SmoothBackButton extends StatelessWidget {
final Color? iconColor;

@override
Widget build(BuildContext context) => InkWell(
onTap: onPressed ?? () => Navigator.maybePop(context),
customBorder: const CircleBorder(),
child: Tooltip(
message: MaterialLocalizations.of(context).backButtonTooltip,
child: Padding(
padding: _iconPadding,
child: Icon(
ConstantIcons.instance.getBackIcon(),
color: iconColor ??
(Theme.of(context).colorScheme.brightness == Brightness.light
? Colors.black
: Colors.white),
Widget build(BuildContext context) => Material(
type: MaterialType.transparency,
child: InkWell(
onTap: onPressed ?? () => Navigator.maybePop(context),
customBorder: const CircleBorder(),
child: Tooltip(
message: MaterialLocalizations.of(context).backButtonTooltip,
child: Padding(
padding: _iconPadding,
child: Icon(
ConstantIcons.instance.getBackIcon(),
color: iconColor ??
(Theme.of(context).colorScheme.brightness ==
Brightness.light
? Colors.black
: Colors.white),
),
),
),
),
Expand Down

0 comments on commit 950c18b

Please sign in to comment.