smallCardWidget method
Implementation
Widget smallCardWidget(
{required Widget child, Function()? onTap, Color? color}) =>
Padding(
padding: DI.theme().smallCardPadding,
child: Container(
decoration: BoxDecoration(
color: color ?? DI.theme().colors().mainDetails,
borderRadius: DI.theme().smallCardRadius,
),
child: Material(
color: Colors.transparent,
child: InkWell(
onTap: onTap,
borderRadius: DI.theme().smallCardRadius,
child: Padding(
padding: DI.theme().internalSmallCardPadding,
child: child,
)),
)),
);