<p>In flutter you have two different types of text fields, TextField and TextFormField.</p> <p>Inorder to get a Text inside the TextFIeld or TextFormField, you need to modify your code as below.</p> <p>For TextField,</p> <p>For TextFormField,</p> <p>color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre-line;](</p> <p><div id="articlecontentword-break: break-all;]( Hope this is helpful.</p> <hr /> <p>Thanks,</p> <p>Srikanth</p>
How to add a placeholder text into TextField or TextFormField
This Article is posted by seven.srikanth at 7/28/2018 4:57:19 AM
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter
Tags: How to add a placeholder text into TextField or TextFormField in Flutter;
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter