Skip to content

Instantly share code, notes, and snippets.

View anshd258's full-sized avatar
:electron:

anshd258 anshd258

:electron:
  • Delhi, India
View GitHub Profile
GlassmorphicContainer(
width: 350,
height: 350,
borderRadius: 20,
blur: 20,
alignment: Alignment.bottomCenter,
border: 2,
linearGradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
@anshd258
anshd258 / .dart
Created October 13, 2022 16:47
textfield1
TextField(
controller: alpa,
),
@anshd258
anshd258 / .dart
Created October 13, 2022 16:54
textfield2
TextField(
cursorColor: Colors.black87,
controller: alpa,
),
TextField(
cursorColor: Colors.black87,
cursorHeight: 40,
cursorWidth: 25,
controller: alpa,
),
TextField(
cursorColor: Colors.black87,
cursorRadius: Radius.circular(20),
cursorHeight: 40,
cursorWidth: 25,
controller: alpa,
),
TextField(
cursorColor: Colors.black87,
cursorRadius: Radius.circular(20),
cursorHeight: 40,
cursorWidth: 25,
showCursor: true,
controller: alpa,
),
TextField(
cursorColor: Colors.black87,
cursorRadius: Radius.circular(20),
cursorHeight: 40,
cursorWidth: 25,
showCursor: true,
enabled: true,
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: trigger,
keyboardType: TextInputType.number,
controller: alpa,
),
TextField(
cursorColor: Colors.black87,
cursorRadius: Radius.circular(20),
cursorHeight: 40,
cursorWidth: 25,
showCursor: true,
obscureText: false,
enabled: trigger,
maxLength: 10,
inputFormatters: [