wMessage method
Implementation
Widget wMessage(String key, String messageValue) {
String text = messageValue;
return Row(
children: [
Expanded(
child: TextField(
maxLines: null,
controller: TextEditingController(text: text),
onChanged: (value) => text = value,
),
),
const SizedBox(
width: 8,
),
IconButton(
onPressed: () {
updateMessage(key, text);
},
icon: const Icon(
Icons.send_outlined,
size: 20,
),
)
],
);
}