Skip to content

Instantly share code, notes, and snippets.

@ipondroid
Created November 4, 2019 03:29
Show Gist options
  • Save ipondroid/ee9c1d9af5ecd730706f46e45300632d to your computer and use it in GitHub Desktop.
Save ipondroid/ee9c1d9af5ecd730706f46e45300632d to your computer and use it in GitHub Desktop.
TextField(
cursorColor: Colors.red,
cursorWidth: 4.0,
maxLength: 10,
obscureText: true,
onChanged: (text) {
print(text);
},
onSubmitted: (text) {
print('Submitted:$text');
},
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment