showOptionBottomSheet function

void showOptionBottomSheet({
  1. required BuildContext context,
  2. String? title,
  3. String? supTitle,
  4. required List<OptionEntity>? options,
  5. Widget? optionItem,
  6. VoidCallback? onTap,
  7. double? height,
  8. Color? bgColor = Colors.white,
})

Implementation

void showOptionBottomSheet({
  required BuildContext context,
  String? title,
  String? supTitle,
  required List<OptionEntity>? options,
  Widget? optionItem,
  VoidCallback? onTap,
  double? height,
  Color? bgColor = Colors.white,
}) {
  return customBottomSheet(
    context: context,
    sheetHeightFraction: height,
    bgColor: bgColor,
    title: title,
    supTitle: supTitle,
    child: Expanded(
      child: SingleChildScrollView(
        child:
            OptionList(options: options, onTap: onTap, optionItem: optionItem),
      ),
    ),
  );
}