xxxxxxxxxx
TextField(
decoration: InputDecoration(
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(width: 3, color: Colors.greenAccent),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(width: 3, color: Color(0xffF02E65)),
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
width: 3, color: Color.fromARGB(255, 66, 125, 145)),
),
),
),
xxxxxxxxxx
TextFormField(
decoration: InputDecoration(
labelText: "Resevior Name",
fillColor: Colors.white,
focusedBorder:OutlineInputBorder(
borderSide: const BorderSide(color: Colors.white, width: 2.0),
borderRadius: BorderRadius.circular(25.0),
),
),
)
xxxxxxxxxx
TextField(
decoration: InputDecoration(
hintText: "Enter your Username",
labelText: "Username",
labelStyle: TextStyle(color: Colors.blue),
border: UnderlineInputBorder(
borderSide: BorderSide(
color: Colors.yellow
)
)
),
),
xxxxxxxxxx
TextField(
decoration: InputDecoration(
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.blue),
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.green),
),
labelText: 'Enter text',
),
)
xxxxxxxxxx
Stack(
children: <Widget>[
// Stroked text as border.
Text(
'Greetings, planet!',
style: TextStyle(
fontSize: 40,
foreground: Paint()
..style = PaintingStyle.stroke
..strokeWidth = 6
..color = Colors.blue[700],
),
),
// Solid text as fill.
Text(
'Greetings, planet!',
style: TextStyle(
fontSize: 40,
color: Colors.grey[300],
),
),
],
)