Skip to content

Instantly share code, notes, and snippets.

View anshd258's full-sized avatar
:electron:

anshd258 anshd258

:electron:
  • Delhi, India
View GitHub Profile
TextField(
onEditingComplete: () => {increment()},
controller: alpa,
),
TextField(
onChanged: (value) => {display(value)},
controller: alpa,
),
TextField(
onSubmitted: (value) => {display(value)},
controller: alpa,
),
TextField(
obscureText: true,
obscuringCharacter: "/",
),
TextField(
inputFormatters: [
FilteringTextInputFormatter.allow(RegExp(r'[A-Za-z]')),
],
keyboardType: TextInputType.number,
controller: alpa,
),
TextField(
cursorColor: Colors.black87,
cursorRadius: Radius.circular(20),
cursorHeight: 40,
cursorWidth: 25,
showCursor: true,
obscureText: false,
enabled: trigger,
maxLines: null,
inputFormatters: [
TextField(
cursorColor: Colors.black87,
cursorRadius: Radius.circular(20),
cursorHeight: 40,
cursorWidth: 25,
showCursor: true,
obscureText: false,
enabled: trigger,
maxLength: 10,
inputFormatters: [
TextField(
cursorColor: Colors.black87,
cursorRadius: Radius.circular(20),
cursorHeight: 40,
cursorWidth: 25,
showCursor: true,
enabled: trigger,
keyboardType: TextInputType.number,
controller: alpa,
),
TextField(
cursorColor: Colors.redAccent.shade400,
cursorHeight: 25,
cursorWidth: 10,
cursorRadius: Radius.circular(20),
controller: alpa,
showCursor: true,
enabled: trigger,
),
TextField(
cursorColor: Colors.black87,
cursorRadius: Radius.circular(20),
cursorHeight: 40,
cursorWidth: 25,
showCursor: true,
enabled: true,
controller: alpa,
),