Skip to content

Commit

Permalink
feat: mutate bottom sheet and dialog builders (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
saileshbro authored Mar 26, 2024
1 parent cef2cb1 commit 711dec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/bottom_sheet/bottom_sheet_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BottomSheetService {
Map<dynamic, SheetBuilder>? _sheetBuilders;

void setCustomSheetBuilders(Map<dynamic, SheetBuilder> builders) {
_sheetBuilders = builders;
_sheetBuilders = {...?_sheetBuilders, ...builders};
}

Future<SheetResponse?> showBottomSheet({
Expand Down
2 changes: 1 addition & 1 deletion lib/src/dialog/dialog_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DialogService {
Map<dynamic, DialogBuilder>? _dialogBuilders;

void registerCustomDialogBuilders(Map<dynamic, DialogBuilder> builders) {
_dialogBuilders = builders;
_dialogBuilders = {...?_dialogBuilders, ...builders};
}

Map<dynamic, DialogBuilder> _customDialogBuilders =
Expand Down

0 comments on commit 711dec5

Please sign in to comment.