create method
create the widget given a WidgetData type
data the widget data
environment the current Environment
context the BuildContext
Implementation
@override
Widget create(TextWidgetData data, Environment environment, BuildContext context) {
// In edit mode, make the text field non-interactive
return IgnorePointer(
ignoring: true,
child: TextField(
decoration: InputDecoration(labelText: data.label.value),
// Optional: You might also want to disable the field visually
enabled: false, // This makes it look disabled but IgnorePointer is what actually blocks interaction
),
);
}