setupBottomSheetUi function
void
setupBottomSheetUi()
Implementation
void setupBottomSheetUi() {
final bottomsheetService = locator<BottomSheetService>();
final Map<BottomSheetType, SheetBuilder> builders = {
BottomSheetType.notice: (context, request, completer) =>
NoticeSheet(request: request, completer: completer),
BottomSheetType.register: (context, request, completer) =>
RegisterSheet(request: request, completer: completer),
BottomSheetType.myDetails: (context, request, completer) =>
MyDetailsSheet(request: request, completer: completer),
BottomSheetType.cancelPayment: (context, request, completer) =>
CancelPaymentSheet(request: request, completer: completer),
BottomSheetType.reason: (context, request, completer) =>
ReasonSheet(request: request, completer: completer),
BottomSheetType.viewOffer: (context, request, completer) =>
ViewOfferSheet(request: request, completer: completer),
BottomSheetType.cVVDetail: (context, request, completer) =>
CVVDetailSheet(request: request, completer: completer),
BottomSheetType.uPIDetail: (context, request, completer) =>
UPIDetailSheet(request: request, completer: completer),
BottomSheetType.profileEdit: (context, request, completer) =>
ProfileEditSheet(request: request, completer: completer),
BottomSheetType.errorCustom: (context, request, completer) =>
ErrorCustomSheet(request: request, completer: completer),
};
bottomsheetService.setCustomSheetBuilders(builders);
}