This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextField( | |
decoration: InputDecoration( | |
hintText: "your-name", | |
), | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextField( | |
minLines: 2, | |
maxLines: 5, | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextField( | |
obscureText: true, | |
obscuringCharacter: "/", | |
maxLength: 10, | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextField( | |
decoration: InputDecoration( | |
suffix: Text( | |
"suffix.", | |
style: TextStyle( | |
color: Colors.black, | |
), | |
), | |
labelText: "NAME", | |
hintText: "your-name", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextField( | |
decoration: InputDecoration( | |
prefix: Text( | |
"Mr.", | |
style: TextStyle( | |
color: Colors.black, | |
), | |
), | |
labelText: "NAME", | |
hintText: "your-name", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextField( | |
decoration: InputDecoration( | |
labelText: "NAME", | |
), | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextField( | |
cursorColor: Colors.redAccent.shade400, | |
cursorHeight: 25, | |
cursorWidth: 10, | |
cursorRadius: Radius.circular(20), | |
controller: alpa, | |
showCursor: true, | |
enabled: trigger, | |
keyboardType: TextInputType.name, | |
inputFormatters: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: [ | |
Text(alpa.text), | |
Center( | |
child: TextField( | |
cursorColor: Colors.redAccent.shade400, | |
cursorHeight: 25, | |
cursorWidth: 10, | |
cursorRadius: Radius.circular(20), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: [ | |
Text(alpa.text), | |
Center( | |
child: TextField( | |
controller: alpa, | |
), | |
), | |
ElevatedButton( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class _MyWidgetState extends State<MyWidget> { | |
TextEditingController alpa = TextEditingController(); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: "textfield", | |
home: Scaffold( | |
appBar: AppBar( | |
leading: BackButton(), |
NewerOlder