📜  bottomsheet 堆叠架构 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:57.830000             🧑  作者: Mango

代码示例1
void setupBottomSheetUi() {
  final bottomSheetService = locator();

  final builders = {
    BottomSheetType.floating: (context, sheetRequest, completer) =>
        _FloatingBoxBottomSheet(request: sheetRequest, completer: completer)
  };

  bottomSheetService.setCustomSheetBuilders(builders);
}