Paul Waweru
 · Innovation through technology

Dynamically position Text Field based on keyboard appearance.

Widgets & Design

I would like to move a text field widgets position depending on whether the keyboard is visible. It has to be moved up based on the keyboard height which varies based on the platform and device.
In flutter this can be done by
MediaQuery.of(context).viewInsets.bottom

In flutterflow I am unable to move it, either I'm missing something or this can't be done.

What have you tried so far?

Adding a code expression, picture of error attached.

Custom function, needs context to be passed which is not accepted as a type of argument.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
5 replies