If you have ever wondered how to completely control and change the colors of any TextField or TextFormField, then this video is your answer.
I go over how to change the colors of these widgets no matter what state TextField/TextFormField can find itself in.
Through the decoration property and by using InputDecoration() everything is possible!
(In the beginning I also show a line of code that takes the focus away from whatever it is in)
00:00 - Intro
00:15 - How to Remove Focus From a Widget
00:30 - Giving a Border to the TextField
01:05 - Rounding the Border
01:30 - All Border Properties
01:47 - enabledBorder
02:45 - disabledBorder
03:36 - focusedBorder
04:28 - "border" Property Explained
04:50 - errorBorder
05:13 - focusedErrorBorder
05:28 - Changing Error Text Color
06:12 - Default TextField Colors Explained
06:30 - Flutter Mentor Out
#textfield #borders #colors
Credits:
OUTRO SONG:
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library • Mitsubachi – Smith The Mister (No Cop...
In questa pagina del sito puoi guardare il video online Flutter - How To Change TextField's/TextFormField's Border Colors della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Flutter Mentor 18 marzo 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 16,297 volte e gli è piaciuto 189 spettatori. Buona visione!