bottomSheetMenu static method

Widget bottomSheetMenu(
  1. IconCardItem iconCard,
  2. VoidCallback functionHandler, {
  3. bool useCard = true,
  4. bool isSuspend = false,
  5. VoidCallback? suspendHandler,
})

Implementation

static Widget bottomSheetMenu(
  IconCardItem iconCard,
  VoidCallback functionHandler, {
  bool useCard = true,
  bool isSuspend = false,
  VoidCallback? suspendHandler,
}) {
  return Column(
    children: [
      Container(
        decoration: !useCard
            ? null
            : BoxDecoration(
                shape: BoxShape.circle,
                color: Get.theme.colorScheme.background,
                boxShadow: [
                    BoxShadow(
                      color: Get.theme.shadowColor,
                      offset: const Offset(0.0, 1.0), //(x,y)
                      blurRadius: 1.0,
                    ),
                  ]),
        child: Material(
          color: Colors.transparent,
          child: InkWell(
            borderRadius: BorderRadius.circular(100.r),
            onTap: isSuspend ? suspendHandler : functionHandler,
            child: Container(
                padding: EdgeInsets.all(10.spMin),
                decoration: const BoxDecoration(
                  color: Colors.transparent,
                ),
                child:
                    // iconCard.isIcon
                    //     ?
                    Icon(
                  iconCard.iconData,
                  color: Get.theme.primaryColor,
                  size: 50.spMin,
                )
                // : Image(
                //     width: Get.width / 10.w,
                //     height: Get.width / 10.h,
                //     image: AssetImage(iconCard.imageAsset),
                //   ),
                ),
          ),
        ),
      ),
      useCard
          ? const SizedBox(
              height: 15,
            )
          : const SizedBox(
              height: 3,
            ),
      Texts.overline(
        iconCard.label,
        textAlign: TextAlign.center,
      ),
    ],
  );
}