How can i center my text "……" like this, thanks. Align or center widget or textAlign is not working, please help me
enter image description here
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Icon(
Icons.visibility_off_outlined,
color: Colors.black
.withOpacity(0.25),
),
Text(
"..........",
textAlign: TextAlign.center,
style: TextStyle(
color: Color(0xFF0E5699),
fontSize: 32,
fontWeight: FontWeight.w700,
),
),
],
),
Vertically center this text like an icon
2
Answers
Your code is fine and already vertically center. Since you use "." so the dot will be in the bottom. If you want to create a center dot. Use bullet instead
You can use
u2022
to create a unicode bullet.But I wonder what the purpose of your question. If you trying to create a
TextField
for password input purpose you can check here How to show/hide password in TextFormField?you can try this this will works for me.