How to call another component within a custom widget?

I've recently developed a custom widget that includes a button. This button is supposed to open a component that already exists within my app. I attempted to use the import statement "import '/components/[componentName].dart'", but received a "target URI does not exist" error. I also tried using "FFAppState().[componentName]" with no success. Can anyone guide me on how to properly call a component inside a custom widget?

7
11 replies