cardWidget method
Implementation
Widget cardWidget({required Widget child, Function()? onTap, Color? color}) =>
Padding(
padding: DI.theme().paddings.card,
child: Container(
decoration: BoxDecoration(
color: color ?? DI.colors().minorBackground,
borderRadius: DI.theme().radius.card,
boxShadow: [
BoxShadow(
color: (color ?? DI.colors().minorBackground)
.withOpacity(0.5),
spreadRadius: 3,
blurRadius: 3,
offset: const Offset(0, 3)),
],
),
child: Material(
color: Colors.transparent,
child: InkWell(
onTap: onTap,
borderRadius: DI.theme().radius.card,
child: Padding(
padding: DI.theme().paddings.internalCard,
child: child,
)),
)),
);