diff --git a/lib/check_list.dart b/lib/check_list.dart index c66491a..6db6180 100644 --- a/lib/check_list.dart +++ b/lib/check_list.dart @@ -75,7 +75,16 @@ class _CheckList extends State { itemBuilder: (context, index) { return Card( child: CheckboxListTile( - title: Text(list[index].text), + title: TextFormField( + enabled: + (listData != null && (!listData!.isTemplate! || _editable)), + decoration: InputDecoration(border: InputBorder.none), + initialValue: list[index].text, + onChanged: (value) { + list[index].text = value; + _updateItem(list[index]); + }, + ), controlAffinity: ListTileControlAffinity.leading, value: list[index].value, onChanged: