In flutter web app,
- use TextField/TextFormField widgets in pluto column renderer property.
- try to modify the value in the cell, unable to modify, can see the focus but unable to enter the data
Ex: PlutoColumn(
title: 'Value',
field: 'value',
type: PlutoColumnType.text(),
enableAutoEditing: true,
enableContextMenu: false,
titleTextAlign: PlutoColumnTextAlign.center,
renderer: (rendererContext) {
return cellRendererWidget(rendererContext);
},
),
Widget cellRendererWidget(PlutoColumnRendererContext rendererContext) {
return TextField(
decoration: const InputDecoration(
hintText: 'value',
),
onChanged: (text) {
print('Entered value: $text');
},
);
}
In flutter web app,
Ex: PlutoColumn(
title: 'Value',
field: 'value',
type: PlutoColumnType.text(),
enableAutoEditing: true,
enableContextMenu: false,
titleTextAlign: PlutoColumnTextAlign.center,
renderer: (rendererContext) {
return cellRendererWidget(rendererContext);
},
),
Widget cellRendererWidget(PlutoColumnRendererContext rendererContext) {
return TextField(
decoration: const InputDecoration(
hintText: 'value',
),
onChanged: (text) {
print('Entered value: $text');
},
);
}