showMultiLinkedPicker static method

void showMultiLinkedPicker(
  1. dynamic context, {
  2. String? title,
  3. required MultiPickerCallback? onConfirm,
  4. MultiPickerCallback? onCancel,
  5. required Map data,
  6. required int columnNum,
  7. required List initialData,
  8. Duration duration = const Duration(milliseconds: 100),
  9. Color? barrierColor,
  10. double pickerHeight = 200,
  11. 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,
        );
      });
}