showMultiLinkedPicker static method
void
showMultiLinkedPicker(
- dynamic context, {
- String? title,
- required MultiPickerCallback? onConfirm,
- MultiPickerCallback? onCancel,
- required Map data,
- required int columnNum,
- required List initialData,
- Duration duration = const Duration(milliseconds: 100),
- Color? barrierColor,
- double pickerHeight = 200,
- int pickerItemCount = 5,
显示多级联动选择器
Implementation
static void showMultiLinkedPicker(context,
{String? title,
required MultiPickerCallback? onConfirm,
MultiPickerCallback? onCancel,
required Map data,
required int columnNum,
required List initialData,
Duration duration = const Duration(milliseconds: 100),
Color? barrierColor,
double pickerHeight = 200,
int pickerItemCount = 5}) {
showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
barrierColor: barrierColor ?? TDTheme.of(context).fontGyColor2.withOpacity(0.6),
builder: (context) {
return TDMultiLinkedPicker(
title: title,
onConfirm: onConfirm,
onCancel: onCancel,
data: data,
pickerHeight: pickerHeight,
pickerItemCount: pickerItemCount,
columnNum: columnNum,
selectedData: initialData,
);
});
}