If you use flutter_screenutil package for mobile responsive adaptive size, It may mess up with the keyboard showing and hiding when you have text field to type in.
If you do you use screen util package, it will make the text field attached to the bottom section of the app screen.
To overcome this, you need to set up two lines in the ScreenUtilInit() class for bottom textfield in chat screen when keyboard is active.
Now your keyboard won’t hide TextField anymore.