Skip to content

Commit

Permalink
feat: update generic card
Browse files Browse the repository at this point in the history
  • Loading branch information
vitormpp committed Jan 7, 2025
1 parent 1e4d072 commit 254f586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/uni_ui/lib/cards/generic_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class GenericCard extends StatelessWidget {
final Color? color;
final Color? shadowColor;
final double? borderRadius;
final Function? onClick;
final VoidCallback? onClick;
final Widget? child;
final String tooltip;

Expand Down Expand Up @@ -58,7 +58,7 @@ class GenericCard extends StatelessWidget {
child: Padding(
padding: padding ?? const EdgeInsets.all(10),
child: GestureDetector(
onTap: onClick != null ? () => onClick!() : null,
onTap: onClick,
child: child,
),
),
Expand Down

0 comments on commit 254f586

Please sign in to comment.