Skip to content

Commit b2b998a

Browse files
committed
refactor(ui): Use Card.filled for tappable card
Replaced the custom `.inCard()` extension method with the standard `Card.filled` widget. This change simplifies the widget structure by nesting the `InkWell` directly inside `Card.filled`, while maintaining the original tap functionality and appearance.
1 parent f77c7fc commit b2b998a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/ui/game/shared.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,11 @@ class _CardButtonState extends AnimatedWidgetBaseState<CardButton> {
290290

291291
@override
292292
Widget build(BuildContext context) {
293-
return InkWell(
294-
onTap: widget.onTap,
295-
borderRadius: context.cardBorderRadius,
296-
child: widget.child,
297-
).inCard(clip: .hardEdge, elevation: $elevation.evaluate(animation), shape: $shape?.evaluate(animation));
293+
return Card.filled(
294+
clipBehavior: .hardEdge,
295+
shape: $shape?.evaluate(animation),
296+
child: InkWell(onTap: widget.onTap, borderRadius: context.cardBorderRadius, child: widget.child),
297+
);
298298
}
299299

300300
@override

0 commit comments

Comments
 (0)