showMiniBottomPopup<T> function

Future<T?> showMiniBottomPopup<T>(
  1. BuildContext context,
  2. String title,
  3. List<Widget> children, {
  4. double? height,
  5. Color backgroundColor = Colors.white,
  6. Widget operation = const SizedBox(height: 15),
  7. VoidCallback? onOk,
  8. EdgeInsetsGeometry padding = const EdgeInsets.only(left: 5, right: 5, bottom: 10),
})

Implementation

Future<T?> showMiniBottomPopup<T>(
  BuildContext context,
  String title,
  List<Widget> children, {
  double? height,
  Color backgroundColor = Colors.white,
  Widget operation = const SizedBox(height: 15),
  VoidCallback? onOk,
  EdgeInsetsGeometry padding =
      const EdgeInsets.only(left: 5, right: 5, bottom: 10),
}) async {
  return await showCupertinoModalPopup<T>(
      context: context,
      builder: (ctx) {
        return MiniBottomSheet(
          title: Text(
            title,
            style: const TextStyle(fontWeight: FontWeight.bold),
          ),
          height: height,
          children: children,
          padding: padding,
          operation: operation,
          onOk: onOk,
          backgroundColor: backgroundColor,
        );
      });
}