Importing Components

I would like to make instances of Components I have made in the FlutterFlow UI.

I saw in another Page the code imports the Component like so:
import '/lesson_components/comp_lesson_intro/comp_lesson_intro_widget.dart';

But attempting to do the same in a Custom Widget results in an error:

Target of URI doesn't exist: '/lesson_components/comp_lesson_intro/comp_lesson_intro_widget.dart'. Try creating the file referenced by the URI, or try using a URI for a file that does exist.

I tried adding ../ in front of it hoping maybe custom widgets are kept somewhere else. That didn't work...

What's the correct way to import a Component into a custom widget?

6
8 replies