In the below image, the label text is aligned with the input field data. How to align the label text with the prefix icon?
Below is the alignment i want!How to get this using TEXTFORMFIELD?
Please have a look
TextFormField( style: TextStyle(fontSize: 26.0, color: Colors.black), decoration: InputDecoration( prefix: Icon(Icons.email, size: 20,), border: OutlineInputBorder(), labelText: "Email", ) ),
output:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.