sliderDialog static method

Widget sliderDialog({
  1. required List<Widget> listWidget,
  2. bool useButton = false,
})

Implementation

static Widget sliderDialog({
  required List<Widget> listWidget,
  bool useButton = false,
}) {
  return Container(
    height: Get.height.h * 0.5.h,
    width: Get.width.w * 0.8.w,
    decoration: BoxDecoration(
      borderRadius: BorderRadius.all(
        Radius.circular(15.r),
      ),
      color: Get.theme.colorScheme.background,
    ),
    padding: EdgeInsets.all(20.spMin),
    child: PageView(
      children: listWidget,
    ),
  );
}