showMiniBottomPopup<T> function
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),
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,
);
});
}