Flutter - How To Change TextField's/TextFormField's Border Colors

Поділитися
Вставка
  • Опубліковано 5 вер 2024

КОМЕНТАРІ • 24

  • @thushankalana4940
    @thushankalana4940 3 місяці тому

    Thank tou so much😍😍

  • @GouravBaghel-ik6nm
    @GouravBaghel-ik6nm Місяць тому

    Thank you

  • @zaidrj7374
    @zaidrj7374 11 місяців тому

    That was very useful, thank you so much

  • @user-tf9pt7yy7w
    @user-tf9pt7yy7w Рік тому

    thank you so much and the outro song is sooooo gooood~!

  • @viktorfraga3841
    @viktorfraga3841 Рік тому

    thank you very much for the instructions, would it be possible for me to change the color of the text that "goes up" in the form? without using labelStyle

  • @ihebhmida9469
    @ihebhmida9469 2 роки тому

    thanks

  • @Nurimendizhen
    @Nurimendizhen Рік тому

    how to change background color, when error?

  • @yoshinohmm4975
    @yoshinohmm4975 3 роки тому +1

    How do I change the height of this textfield? it's too tall, I want to smaller

    • @FlutterMentor
      @FlutterMentor  2 роки тому

      I'm not sure what exactly you want to accomplish but here are 2 options:
      You can change the fontSize and height like this:
      Container(
      width: 100.0,
      child: TextField(
      style: TextStyle(
      fontSize: 40.0,
      height: 2.0,
      color: Colors.black
      )
      )
      )
      Or you could just wrap it with a container a define the height (but this will probably only work for increasing the height):
      Container(
      width: 100.0,
      child: TextField()
      )

    • @yoshinohmm4975
      @yoshinohmm4975 2 роки тому

      @@FlutterMentor I’d like to change the size of the box that contains the text, it’s too tall

    • @FlutterMentor
      @FlutterMentor  2 роки тому

      @@yoshinohmm4975 If you think it's too tall, then you might have some padding going on maybe in the container wrapping it? If not, yu have to decrease the fontSize using the style property.

  • @saratm9973
    @saratm9973 2 роки тому

    My textfield underline is hitting on screen. How can i change this?

  • @husseintarek5535
    @husseintarek5535 2 роки тому

    ty sooo much bro😍😍

  • @user-iq2pp4zp2d
    @user-iq2pp4zp2d 2 роки тому

    thanks bro this is cool

  • @tomorrowsci
    @tomorrowsci 3 роки тому

    thanks bro,well explained

  • @adityasapra821
    @adityasapra821 3 роки тому

    thanks !

  • @yan-cordeiro
    @yan-cordeiro 2 роки тому

    is it possible to use linearGradient on a textfield??

    • @FlutterMentor
      @FlutterMentor  2 роки тому

      I'm not sure, as I've never tried it.. But it should be possible!

    • @maran.ath4
      @maran.ath4 2 роки тому

      Exactly what I'm looking for, it's been 2 days now

    • @yusufansari3203
      @yusufansari3203 Рік тому

      Hey bro did you find out how to do this?

    • @yan-cordeiro
      @yan-cordeiro Рік тому

      @@yusufansari3203 if i remember, i use the gradient on a div, clip the div with the text and make the text transparent, same way we do in tailwind css

  • @trend8520
    @trend8520 2 роки тому

    thanks!