MaterialTextField icon indicating copy to clipboard operation
MaterialTextField copied to clipboard

How do I handle multiple MFTextfield which are placed horizontally as well as vertically?

Open hardikamal opened this issue 6 years ago • 3 comments

How do I handle such scenario as error label overlaps below textfield?

screenshot 2019-01-24 at 1 18 33 pm

screenshot 2019-01-24 at 1 26 15 pm

hardikamal avatar Jan 24 '19 07:01 hardikamal

Hi,

Check you're using v0.2 or above. This issue was already mentioned here: https://github.com/stephsharp/MaterialTextField/issues/4

EEO95 avatar Jan 26 '19 22:01 EEO95

Hi I am using v1.0 this issue occurs when there are 2 textfield in same row.

hardikamal avatar Jan 30 '19 12:01 hardikamal

@hardikamal how's your constraints? I did it by just setting a bottom constraint to the TextField below.

Having two text fields in the same row in these devices is not exactly a great decision, since the required layout is more complex (you can achieve this design by embedding them in a StackView, and then embed it in an UIView). Other approaches will make you tear your hair away. Also, a short amount of the entered text will be visible. The user can have a really long name, make a typo and don't see it because of this. The best way to implement a form is in a list-based design, just like Apple shows here https://developer.apple.com/design/human-interface-guidelines/ios/controls/text-fields/.

I hope it helps. Any other question, DM me and feel free to ask. Regards. ✌️

animated 2

captura de pantalla 2019-02-04 a la s 3 05 06 p m captura de pantalla 2019-02-04 a la s 3 05 18 p m

EEO95 avatar Feb 04 '19 22:02 EEO95