Keyboard keyboard overlapping Android keyboard, browsing does not scroll automatically

I have the same problem described in this question , but on Trigger.io . Unfortunately, the solution requires changing AndroidManifest.xml, which seems impossible in Trigger.io

In some of my applications, the Android keyboard overlaps some input fields, which makes entering values โ€‹โ€‹difficult.

Here are some screenshots showing the problem. The "Senha" field is overlapped by the Android keyboard, and the view does not scroll to it even after the user enters a value.

I tried trigger.io email support, but they asked me to find the answer here ...

screenshot 1screenshot 2

+6
source share
2 answers

If you want to make changes to AndroidManifest.xml, the best option would be to create your own module for your applications:

https://trigger.io/docs/current/api/native_modules/index.html

In particular, you can make changes to the manifest by creating a custom build step:

https://trigger.io/docs/current/api/native_modules/native_build_steps.html

i.e. sort of:

[ { "do": { "android_add_to_activity_manifest_attributes": { "attributes": { "android:windowSoftInputMode": "adjustResize" } } } } ] 
+3
source

It worked for me ...

Add this first

 final bottom = MediaQuery.of(context).viewInsets.bottom; 

Then use SingleChildScrollView () to wrap around the main widget (whatever you use, e.g. Column, ListView, etc.) like this ...

You need to flip: true

 Widget build{ return Scaffold( body: SingleChildScrollView( reverse: true; child: Container(... 

You also need these two lines of code for the scaffold.

 return Scaffold( resizeToAvoidBottomInset: false, resizeToAvoidBottomPadding: false, body: SingleChildScrollView(... 

and finally specify a โ€œbottomโ€ for your EdgeInsets.

 body: SingleChildScrollView( reverse: true, child: Padding( padding: EdgeInsets.only(bottom: bottom), child: Container(... 
+1
source

Source: https://habr.com/ru/post/969977/


All Articles