0

I have list of tasks and below that I have TextField, now when the multiple tasks added then I need to show TextField just above the keyboard.

How can I achieve this?

Thanks in Advance!

Small piece of code :

    TextFormField(
      scrollPadding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom - 160), // this line not work for me.
      cursorColor: Colors.black,
      toolbarOptions: ToolbarOptions(copy: true, cut: true, paste: true, selectAll: true),
      showCursor: MediaQuery.of(context).viewInsets.bottom != 0 ? true : false,
      style: new TextStyle(
        fontSize: 15.0,
        fontFamily: "Roboto",
        fontWeight: FontWeight.w400,
        color: darkGreyColor,
      ),
      controller: _textFieldControllerSubTaskAdd,
      focusNode: focusNodeSubTask,
      keyboardType: TextInputType.text,
      textInputAction: TextInputAction.done,
      onChanged: (text) {
      },      
    ),

enter image description here

Yashraj
  • 1,025
  • 1
  • 5
  • 22

0 Answers0