how does onvaluechanged works?
`class Property extends StatefulWidget {
final PropertyType type;
final ValueChanged onValueChanged;
final currentValue;
final WidgetType widgetType;
Property(this.type, this.onValueChanged,
{this.currentValue, this.widgetType,});
@override
_PropertyState createState() => _PropertyState();
}`
i have added border radius for containers like this :
` this.params = {
"width": "0.0",
"height": "0.0",
"radius":["0.0","0.0","0.0","0.0"],
};`
and on the propriety file like this:
` case PropertyType.radius:
return Row(
children: <Widget>[
Flexible(
child: TextField(
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: "TopLeft",
),
controller: SelectingTextEditingController(
text: widget.currentValue[0].toString()),
onChanged: widget.onValueChanged,
keyboardType: TextInputType.numberWithOptions(
signed: true, decimal: true),
),
),
Flexible(
child: TextField(
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: "TopRight",
),
controller: SelectingTextEditingController(
text: widget.currentValue[1].toString()),
onChanged: (String t){
setState(() {
p
});
},
keyboardType: TextInputType.numberWithOptions(
signed: true, decimal: true),
),
),
],
);`
i added only two for test and it is like the two text feilds are merged the value still apply but changing it doesn't work properly.