Popup with any content

Widgets & Design
Resolved

Can someone show me a small example of how to create a popup widget,
where you can insert any content (e.g. button or TextField) (in the Designer)?

I found an example of a popup in which you can display a string list here in the forum.
How can you use the itemBuilder: (context) so that you can insert any widget in the
FlutterFlow Designer instead?

itemBuilder: (context) {
return widget.values.mapIndexed((int index, dynamic value) {
return PopupMenuItem<int>(
value: index,
child: Text(value,
style: TextStyle(
color: widget.menuFontColor ??
FlutterFlowTheme.of(context).primaryText,
fontSize: widget.menuFontSize)),
);
}).toList();
});

What have you tried so far?

I have tried to change the itemBuilder so that it can display any content (which can be defined externally in the Designer).

Unfortunately without success so far.

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