wMessage method

Widget wMessage(
  1. String key,
  2. String messageValue
)

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,
        ),
      )
    ],
  );
}