showMultiPicker static method
void
showMultiPicker(})
显示多级选择器
Implementation
static void showMultiPicker(context,
{String? title,
required MultiPickerCallback? onConfirm,
MultiPickerCallback? onCancel,
required List<List<String>> data,
List<int>? initialIndexes,
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 TDMultiPicker(
title: title,
onConfirm: onConfirm,
onCancel: onCancel,
data: data,
initialIndexes: initialIndexes,
pickerHeight: pickerHeight,
pickerItemCount: pickerItemCount,
);
});
}