showChatUIKitDialog<T> function
Future<T?>
showChatUIKitDialog<T>({
- required BuildContext context,
- required List<
ChatUIKitDialogAction< actionItems,T> > - String? content,
- String? title,
- List<
ChatUIKitDialogInputContentItem> ? inputItems, - double? leftRightPadding,
- Color barrierColor = Colors.black54,
- bool barrierDismissible = true,
- ChatUIKitDialogRectangleType? borderType,
Implementation
Future<T?> showChatUIKitDialog<T>({
required BuildContext context,
required List<ChatUIKitDialogAction<T>> actionItems,
String? content,
String? title,
List<ChatUIKitDialogInputContentItem>? inputItems,
TextStyle? hiddenStyle,
double? leftRightPadding,
Color barrierColor = Colors.black54,
bool barrierDismissible = true,
ChatUIKitDialogRectangleType? borderType,
}) async {
ChatUIKitDialogRectangleType type =
borderType ?? ChatUIKitSettings.dialogRectangleType;
return showDialog(
barrierColor: barrierColor,
barrierDismissible: barrierDismissible,
context: context,
builder: (context) {
return ChatUIKitDialog(
title: title,
content: content,
inputItems: inputItems,
leftRightPadding: leftRightPadding ?? defaultLeftRightPadding,
hiddenStyle: hiddenStyle,
actionItems: actionItems,
borderType: type,
);
},
);
}