Why do you use onSubmitted:
option in TextField()
,
I wanted to make Textfield than the option onsubmited came and i didnt understand anything changes in the final result , can anyone plz explain it to me that why we use onSubmitted option?
this is my code:
TextField(
style: TextStyle(
color: Colors.lightBlueAccent,
),
decoration: InputDecoration(
labelText: "Password",
labelStyle: TextStyle(
color: Colors.grey,
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: Colors.grey.shade300,
width: 2,
),
borderRadius: BorderRadius.circular(30),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(
color: Colors.blue,
width: 2,
),
borderRadius: BorderRadius.circular(30),
),
prefixIcon: Icon(
Icons.lock_outline,
),
),
),