Texte FieldForm Couleur Flutter
TextField(
style: TextStyle(color: Colors.red),
decoration: InputDecoration(fillColor: Colors.orange, filled: true),
)
Dull Dunlin
TextField(
style: TextStyle(color: Colors.red),
decoration: InputDecoration(fillColor: Colors.orange, filled: true),
)
TextField(
cursorHeight: 20,
autofocus: false,
controller: TextEditingController(text: "Initial Text here"),
decoration: InputDecoration(
labelText: 'Enter your username',
hintText: "Enter your Name",
prefixIcon: Icon(Icons.star),
suffixIcon: Icon(Icons.keyboard_arrow_down),
contentPadding: const EdgeInsets.symmetric(vertical: 10,horizontal: 10),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(30),
borderSide: BorderSide(color: Colors.grey, width: 2),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(30),
borderSide: BorderSide(color: Colors.grey, width: 1.5),
),
focusedBorder: OutlineInputBorder(
gapPadding: 0.0,
borderRadius: BorderRadius.circular(30),
borderSide: BorderSide(color: Colors.red, width: 1.5),
),
),
)
TextField(
decoration: new InputDecoration(
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.greenAccent, width: 5.0),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.red, width: 5.0),
),
hintText: 'Mobile Number',
),
TextField(
cursorHeight: 25,
autofocus: false,
decoration: InputDecoration(
contentPadding: const EdgeInsets.symmetric(vertical: 10,horizontal: 10),
border: OutlineInputBorder(),
labelText: 'Enter your username',
hintText: "Enter your Name"
),
)
TextField(
decoration: InputDecoration(
border: OutlineInputBorder(),
hintText: 'Enter a search term'
),
);
TextField(
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'Enter a search term'
),
);