I'm wondering if this is impossible, I'm honestly getting a migraine from all the google searching. I want to set a floating text above a TextField that only shows if upon button press it is empty it will show the text in red that the field is required or whatever text I set.
I tried using:
Then I would just set that label with a new text upon it being empty and it shows in red but it puts a large gap between each field and I already know my professor will say that is poor design and mark off on my project for it.
EDIT: What I'm looking for is similar to this site:
https://itnext.io/how-to-build-a-floating-label-input-field-f9b21669fe2f