How do I add my custom widget into another custom widget?

Custom Code

I have my own custom widget that I want to use in another custom widget.

It should have been fairly simple as I should be able to just import the function and then call the other custom widget. In Flutterflow, it looks like the import of other widgets is part of the template: import '/custom_code/widgets/index.dart'; // Imports other custom widgets

however, that seems to fail to compile...

is there any specific syntax i need to use?

help.. thanks,

What have you tried so far?

looked at help files, chatGPT, Claude...

Did you check FlutterFlow's Documentation for this topic?
Yes
2
3 replies