Need help to open the bottom sheet from custom widget

General Conversations

I'm developing a widget for my app that contains an icon. When the icon is tapped, I want it to open a bottom sheet. I've already designed this bottom sheet using FlutterFlow, and now I need to import it into my custom widget and trigger it from there.

However, whenever I pass the bottom sheet function as a callback parameter into my custom widget, FlutterFlow gives me an error saying "Unable to process." Also, when I try importing the bottom sheet directly into my custom widget, I encounter another error: "Target URI doesn't exist."

Could you please suggest how I can resolve this?

2