smallCardWidget method

Widget smallCardWidget({
  1. required Widget child,
  2. dynamic onTap()?,
  3. Color? color,
})

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,
                )),
          )),
    );