Okay, For the first example, you can use the following code snippet:
TextField(
obscureText: false,
decoration: InputDecoration(
border: UnderlineInputBorder(),
labelText: 'Password',
),
)
And for the second example use snippet is given below:
TextField(
obscureText: false,
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: 'Password',
),
)
Hope this helps.
For more details and extended functionalities you can check the docs here: Flutter Docs
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.