content method

Widget content()

Implementation

Widget content() {
  final shape = RoundedRectangleBorder(borderRadius: BorderRadius.circular(4));

  return Material(
    color: enable ? Colors.transparent : disableColor,
    shape: shape,
    child: InkWell(
      customBorder: shape,
      onTap: () {
        onPressed?.call();
        handleOnPressed();
      },
      hoverColor: disableColor,
      child: Padding(
        padding: padding,
        child: Column(
          children: [
            Row(
              children: [
                leadingWidget(),
                spacing,
                Expanded(
                  child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [nameWidget(), descriptionWidget()],
                  ),
                ),
                trailingWidget(),
              ],
            ),
            childWidget ?? const SizedBox(),
          ],
        ),
      ),
    ),
  );
}