textField method

Widget textField()

Implementation

Widget textField() {
  return Padding(
    padding: const EdgeInsets.only(left: 16.0, right: 16, bottom: 16),
    child: Stack(
      children: [
        Row(
          children: [
            Expanded(
              child: TextFormField(
                controller: controller.messageController,
                onChanged: (value) {
                  controller.showSendIcon.value = value.isNotEmpty;
                },
                decoration: InputDecoration(
                  contentPadding: const EdgeInsets.symmetric(
                    vertical: 4,
                    horizontal: 24,
                  ),
                  filled: true,
                  hintText: "Let’s talk about your health",
                  focusedBorder: OutlineInputBorder(
                    borderRadius: BorderRadius.circular(24.0),
                    borderSide: const BorderSide(
                      color: Colors.blue,
                      width: 1,
                    ),
                  ),
                  border: OutlineInputBorder(
                    borderRadius: BorderRadius.circular(24.0),
                    borderSide: const BorderSide(
                      width: 0,
                    ),
                  ),
                ),
              ),
            ),
          ],
        ),
        Positioned(
            right: 4,
            top: 0,
            bottom: 0,
            child: Material(
                shadowColor: Colors.transparent,
                shape: const CircleBorder(),
                elevation: 8.0,
                child: inputButton())),
      ],
    ),
  );
}