showAddEditLinkBottomSheet function
void
showAddEditLinkBottomSheet({ - required dynamic context,
- String? bottomSheetTitle,
- String? pinTitle,
- String? pinLink,
- required dynamic onSave(
- String,
- String
),
})
Implementation
void showAddEditLinkBottomSheet({
required BuildContext context,
String? bottomSheetTitle,
String? pinTitle,
String? pinLink,
required Function(String, String) onSave,
}) {
showModalBottomSheet(
showDragHandle: true,
useSafeArea: true,
context: context,
isDismissible: true,
isScrollControlled: true,
builder: (context) {
return LinkBottomSheet(
bottomSheetTitle: bottomSheetTitle,
pinTitle: pinTitle,
pinLink: pinLink,
onSave: onSave,
);
},
);
}