Dn-a / flutter_tags

With flutter tags you can create selectable or input tags that automatically adapt to the screen width
https://pub.dartlang.org/packages/flutter_tags
MIT License
507 stars 127 forks source link

Feature request: Add option to have text field on separate row #21

Closed ScottEAdams closed 4 years ago

ScottEAdams commented 5 years ago

As mentioned in the title, it would be great to be able to have the text field for input tags on its own row with the tags above or below the field.

Dn-a commented 5 years ago

@7wonders sure, I'll add it in the next release!

Dn-a commented 5 years ago

@7wonders new version 0.4.2. check and leave feedback

moovida commented 5 years ago

@Dn-a , does this mean you added the functionality? I was not able to have it on a different row. It works at the begin, but after removing and adding some tags, new inserted tags appear in front of the textfield.

Dn-a commented 5 years ago

@moovida do you mean a textfield that occupies the whole line and with the possibility of inserting it at the beginning or at the end?

moovida commented 5 years ago

Actually I was thinking of a text field on top and all the tags added below it. Currently, when a new line is added, the tag is added at the begin of it, like in the below example when I add "add2" after the other 4:

image

I would rather have it appearing below the textfield. Actually I aslo tried after it, but couldn't find a a parameter that would do that.

Dn-a commented 5 years ago

@moovida now it is clear to me ... try setting the width in TagsTextFiled.

TagsTextFiled(width: 400)

moovida commented 5 years ago

Ahh, that works indeed. It should be ok to set an extra large value in order to be on one line also on larger devices, right?

Dn-a commented 5 years ago

@moovida yes, overflow problems should not occur. however, in the next release I will put a specific parameter

Dn-a commented 4 years ago

@moovida did you solve with the width field?

moovida commented 4 years ago

@Dn-a , oh yes, sorry for not coming back to you on that. Thank you!

Dn-a commented 4 years ago

@moovida @7wonders perfect! then I can close it