showSmoothModalSheetForTextField<T> function

Future<T?> showSmoothModalSheetForTextField<T>({
  1. required BuildContext context,
  2. required SmoothModalSheetHeader header,
  3. required WidgetBuilder bodyBuilder,
  4. double? minHeight,
  5. double? maxHeight,
})

Implementation

Future<T?> showSmoothModalSheetForTextField<T>({
  required BuildContext context,
  required SmoothModalSheetHeader header,
  required WidgetBuilder bodyBuilder,
  double? minHeight,
  double? maxHeight,
}) {
  return showSmoothModalSheet<T>(
    context: context,
    minHeight: minHeight,
    maxHeight: maxHeight,
    builder: (BuildContext context) => SizedBox(
      width: double.infinity,
      child: ClipRRect(
        borderRadius: const BorderRadius.vertical(top: ROUNDED_RADIUS),
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[header, bodyBuilder(context)],
        ),
      ),
    ),
    isScrollControlled: true,
  );
}