Flutter Tutorial - TextField - Deep Dive

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024

ความคิดเห็น • 98

  • @HeyFlutter
    @HeyFlutter  2 ปีที่แล้ว

    👉Join 12 Week Flutter Training: heyflutter.com
    👉Join the WhatsApp Channel to get the latest news about Flutter & HeyFlutter: whatsapp.com/channel/0029VaDNCZtC1Fu8nL2vmw3f
    Source Code: github.com/JohannesMilke/textfield_example
    TextFormField & Forms Tutorial: th-cam.com/video/2rn3XbBijy4/w-d-xo.html
    Email SignIn Tutorial: th-cam.com/video/rnHAInnjCmM/w-d-xo.html
    Google SignIn Tutorial: th-cam.com/video/ogW83xGQGTg/w-d-xo.html
    Text Tutorial: th-cam.com/video/WYbXv9WtVwE/w-d-xo.html
    Text Recognition Tutorial: th-cam.com/video/TNKtGOZRA5o/w-d-xo.html
    Image Tutorial: th-cam.com/video/JDDoN2THwug/w-d-xo.html
    Google Translate Tutorial: th-cam.com/video/N_UI1Wps7bI/w-d-xo.html
    Align & Position Tutorial: th-cam.com/video/4wS5LdXJgEA/w-d-xo.html
    Card Tutorial: th-cam.com/video/pDnfJvh7uzc/w-d-xo.html
    Navigation Tutorial: th-cam.com/video/Xnp6ptZVs1g/w-d-xo.html

  • @hardiklakhalani6268
    @hardiklakhalani6268 3 ปีที่แล้ว

    I like your To The Point Video Editing. Not a single second goes to waste.

  • @stunnaman8803
    @stunnaman8803 3 ปีที่แล้ว

    Every flutter developer need this

  • @biennguyenvan5637
    @biennguyenvan5637 3 ปีที่แล้ว

    You save my *noob* 30 minutes struggling with suffix change when text is empty. Thank you!

  • @bone29-k8r
    @bone29-k8r ปีที่แล้ว

    amazing, you are not showing the fundametals, but also the logical flows in coding, which are very good for non-IT base like me. Thank you so much for your efforts.

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Glad to hear that, You are welcome Bon Du lịch! 😊

  • @computerprogrammer9279
    @computerprogrammer9279 2 ปีที่แล้ว

    Bro thanks a lot. I hope your channel will grow day by day and it became the most famous channel in the world. I am your big fan broo

  • @yoapps137
    @yoapps137 3 ปีที่แล้ว +2

    Video is amazing. Just 1 recommendation - you could show how to avoid the keypad that slides up, from covering your text field that you clicked on.. Since now that text field has focus.

    • @yoapps137
      @yoapps137 3 ปีที่แล้ว

      @@HeyFlutter great .. I really admire you & your humility. All the best Always :-)

    • @mumerhafeez2494
      @mumerhafeez2494 10 หลายเดือนก่อน

      Can you tell me how would I show the text over the text field at left without focusing it. means to say the format shown at focus can be done if we want this on without focus?

  • @mojtabasaebi6096
    @mojtabasaebi6096 2 ปีที่แล้ว

    Number One love your Teaching

  • @barziyassin1
    @barziyassin1 2 ปีที่แล้ว

    Very good and quick dive. You broke the ice by the mean, thanks Johannes 👍

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      You’re most welcome, Barzy Yasin! 🙂

  • @jonthuemichel9939
    @jonthuemichel9939 11 หลายเดือนก่อน

    What is the best way to apply styles globally? Is making a custom widget the only way?

    • @HeyFlutter
      @HeyFlutter  11 หลายเดือนก่อน

      Thank You @jonthuemichel9939! Follow this link: kcl.hashnode.dev/how-to-define-a-flutter-theme
      I hope you will get your answer 🙂

  • @destinkabote4643
    @destinkabote4643 2 ปีที่แล้ว

    Thank you so much for this complete tutorial of TextField, greatjob!

  • @edoardoremondini3221
    @edoardoremondini3221 3 ปีที่แล้ว

    amazing channel. as a flutter beginner helps me figure out a lot of things. thank you so much

  • @hectorprx
    @hectorprx 3 ปีที่แล้ว

    Great job Breaking down all the aspects of the given widget. Thanks

  • @oswaldoolea2889
    @oswaldoolea2889 ปีที่แล้ว

    tutorial very well paced, explained, content rich and essential for flutter layouts and functionality (....and with code in github.... yahuuuu!! ) , thank you a lot,

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Glad to hear that, You are welcome Oswaldo Olea! 😊

  • @moehamdan1001
    @moehamdan1001 3 ปีที่แล้ว

    Why text field is always make problem and bugs in real device , but in emulater work fine ?

  • @iedit1713
    @iedit1713 2 ปีที่แล้ว

    you are too good man, I love your Videos.

  • @paulobiscocho9042
    @paulobiscocho9042 2 ปีที่แล้ว

    Thanks Johannes!

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thanks, also Paulo Biscocho! 🙂

  • @VladVons
    @VladVons 3 ปีที่แล้ว

    Thanks more + like from me!
    Every your sourced lesson is short and easy to understand

  • @md_idy
    @md_idy 2 ปีที่แล้ว

    Hi Johannes, How to change color of the bubble (under cursor) while editing the text in Text Field.

  • @giannifed
    @giannifed 3 ปีที่แล้ว

    thank you Milkee

  • @vijaybabaria3253
    @vijaybabaria3253 3 ปีที่แล้ว

    Thanks, would love to see extension of these text forms with rich text editor like quill - thanks

  • @rv9570
    @rv9570 2 ปีที่แล้ว

    Hey Johnathan, hope you are doing well can you please make a video on one time purchase in app. I mean lifetime fee to use the app. Also please tell can it possible without having database. Also with local payment method if possible. Thanks in advance.

    • @rv9570
      @rv9570 2 ปีที่แล้ว

      @@HeyFlutter Thanks Man!

  • @codegame6689
    @codegame6689 3 ปีที่แล้ว +1

    You are just exceptional!!!

  • @deborahmizfel8036
    @deborahmizfel8036 2 ปีที่แล้ว

    Hello, one question. How did you change the color of the word email when it was selected? In the beginning was grey and then was red, how did you do that?

  • @kingisback4005
    @kingisback4005 ปีที่แล้ว

    Hi sir for web textinput type number not working
    Do you have any solution

  • @bloodshi1
    @bloodshi1 2 ปีที่แล้ว

    Thankyou ~~~very helpful video~~

  • @artsylemon7775
    @artsylemon7775 2 ปีที่แล้ว

    Is that possible to paste / copy text from the inputs? For me copy, paste, select al and cut buttons not working.

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Artsy Lemon! Follow this link: www.fluttercampus.com/guide/87/how-to-copy-paste-text-from-clipboard-with-dart-flutter/
      I hope you will get your answer 🙂

  • @narikodanhridul3717
    @narikodanhridul3717 2 ปีที่แล้ว

    I made a ALERT DIALOGUE BOX, content is having a TEXT FIELD , and actions have two BUTTONS in a row...... BUT there is some EXTRA SPACE between these TEXT FIELD and BUTTONS..... How can I avoid thaaat space. I used padding with insets = 0 ..... But not working, also tried by wraping text field with container and specifying height but that too didnt worked ... what to do....How can I avoid thaaat space

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You NARIKODAN HRIDUL! Follow this link: fluttercentral.com/Articles/Post/1060/How_to_remove_the_extra_space_on_left_side_of_Column_Widget
      I hope you will get your answer 🙂

  • @haiderjaafer8164
    @haiderjaafer8164 3 ปีที่แล้ว +1

    Absolutely great keep going forward

  • @Patrickus23
    @Patrickus23 2 ปีที่แล้ว

    Sir, How can we set a TextFieldForm in the center of the screen onTap Function? Or at least to make it visible and above the keyboard

  • @monishreddy6983
    @monishreddy6983 3 ปีที่แล้ว

    And thattt is fantasticooooooo man!!!!!!????

  • @samuelkings9416
    @samuelkings9416 2 ปีที่แล้ว

    Hi Johnannes. I couldn't find any tutorial on the internet where are user can bold a part of his text inside a text field just like whatsapp. Can you please help out?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Kings Samuel Abimbola! Follow this link: stackoverflow.com/questions/51093559/flutter-is-it-possible-to-format-bold-italicize-etc-with-in-the-string-only
      I hope you will get your answer 🙂

  • @fatihtutar7583
    @fatihtutar7583 3 ปีที่แล้ว

    Thank you so much this video helped me a lot

  • @khelasports7396
    @khelasports7396 3 ปีที่แล้ว +1

    How to Increase the height and Width?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You AZ Gaming! Follow this link: www.kindacode.com/article/flutter-textfield-width-height-padding/
      I hope you will get your answer 🙂

  • @anandmano4375
    @anandmano4375 2 ปีที่แล้ว

    Excellent

  • @JuanPerez-vv5lk
    @JuanPerez-vv5lk 3 ปีที่แล้ว

    Excelent tutorial. Do you have a tutorial to create the same mobile app for Android & IOS ?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Juan Perez! 🙂 I usually focus on flutter tutorials only, this same flutter app can be used on Android as well as on iOS

  • @narikodanhridul3717
    @narikodanhridul3717 2 ปีที่แล้ว

    if we use keyboard dismisser in dependencies... will that increase app size ?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You NARIKODAN HRIDUL! Follow this link: pub.dev/packages/keyboard_dismisser
      I hope you will get your answer 🙂

  • @warperone
    @warperone 2 ปีที่แล้ว

    very comprehensive video - well done. I'm trying to create a TextField that gets a user to enter a time in HH:MM:SS format. I want it so as they type in HH I automatically insert ':' in TextField and so on, I can get it to work but when they press backspace or delete key it does not work so well. Any thoughts or examples ?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You mars 000! Follow this link: stackoverflow.com/questions/62467842/flutter-textfield-input-validation-for-a-date
      I hope you will get your answer 🙂

  • @edoardoremondini3221
    @edoardoremondini3221 3 ปีที่แล้ว

    can you do a video on the validation of this textfields? just subscribed btw

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Edoardo Remondini! Check out this video about textfield validation: th-cam.com/video/2rn3XbBijy4/w-d-xo.html

  • @ritiksaxenaofficial
    @ritiksaxenaofficial 3 ปีที่แล้ว

    4:28 we can also use below code for suffix icon:
    suffixIcon: Visibility(
    *visible: emailController.text.isEmpty ? false : true,*
    child: IconButton(
    icon: const Icon(Icons.clear),
    onPressed: () {
    emailController.clear();
    },
    splashRadius: 15,
    ),
    ),
    Visibility is explained in one of your recent videos.

  • @kerbyelpenord7613
    @kerbyelpenord7613 2 ปีที่แล้ว

    Hi, do you know how can i retreive selected text form a textfield?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thank You Kerby Elpenord! Follow this link: stackoverflow.com/questions/56568057/flutter-textfield-get-selected-text
      I hope you will get your answer 🙂

  • @surujmiah861
    @surujmiah861 3 ปีที่แล้ว

    You are very amazing man , thank you brother.

    • @surujmiah861
      @surujmiah861 3 ปีที่แล้ว

      @@HeyFlutter welcome.

  • @ahmedbasalib9300
    @ahmedbasalib9300 3 ปีที่แล้ว

    You are amazing man , thank you

  • @ahmetcubuk4245
    @ahmetcubuk4245 3 ปีที่แล้ว

    I want to set email text color and border color when I click the field how can I do that

    • @ahmetcubuk4245
      @ahmetcubuk4245 3 ปีที่แล้ว

      In your example the text color and border color when the box is clicked are red, just like in your app, i want to do this in orange in my app

  • @tasaddaqrandhawa4219
    @tasaddaqrandhawa4219 3 ปีที่แล้ว

    Great job brother

  • @RandalLSchwartz
    @RandalLSchwartz 3 ปีที่แล้ว

    Could you have used a Riverpod flutter_hooks "useTextEditingController" to avoid adding (or forgetting to add) the initState and dispose?

    • @RandalLSchwartz
      @RandalLSchwartz 3 ปีที่แล้ว

      @@HeyFlutter Are you going to re-edit it to talk about the missing dispose? :)

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      ​ @Randal L. Schwartz Within the dispose method the TextEditingController needs to be disposed to clean up resources of the TextEditingController properly
      1) Learn more about the dispose method here: stackoverflow.com/a/64384890
      2) I have also implemented the dispose method properly within the source code of this project here: github.com/JohannesMilke/textfield_example/blob/3a5980c3524b441504d21e1b7528386f10d5e4f8/lib/widget/textfield_general_widget.dart#L22

  • @adeelzahid9622
    @adeelzahid9622 3 ปีที่แล้ว

    you're awesome as well as your content.

  • @multiculturalvolleyballbar3467
    @multiculturalvolleyballbar3467 3 ปีที่แล้ว

    Is there any way the user can create Rich Texts with a Textfield? For example if the user wants to convert any word inside the textfield to bold?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Multicultural ! You could learn more about to create Rich Texts with a Textfield here: livecyclekarma.wordpress.com/2009/05/20/richtext-tricks-for-textfield-in-designer/

  • @deepjyotibaishya7576
    @deepjyotibaishya7576 2 ปีที่แล้ว

    how tu use textfield done by clicking on
    anywhere background .

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thank You Deepjyoti Baishya! Follow this link: stackoverflow.com/questions/51652897/how-to-hide-soft-input-keyboard-on-flutter-after-clicking-outside-textfield-anyw
      I hope you will get your answer 🙂

  • @yunismaruf
    @yunismaruf 2 ปีที่แล้ว

    when text field is active, I want to set color for mail icon to green, how can do that?

    • @yunismaruf
      @yunismaruf 2 ปีที่แล้ว

      @@HeyFlutter thank you 😊

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thank You Yunis Maruf! Follow this link: stackoverflow.com/questions/54802765/flutter-textfield-change-icon-color-when-selected
      I hope you will get your answer 🙂

    • @yunismaruf
      @yunismaruf 2 ปีที่แล้ว

      @@HeyFlutter thank you 😊

  • @mateenmehmood5675
    @mateenmehmood5675 2 ปีที่แล้ว

    Big fan.

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thank you, Mateen Mehmood! 🙂

  • @Mazda-vu9lc
    @Mazda-vu9lc 3 ปีที่แล้ว

    Amazing !!! thank you

  • @vinusubhash9106
    @vinusubhash9106 2 ปีที่แล้ว

    Gold

  • @MuhammadAdnan-vs5cx
    @MuhammadAdnan-vs5cx 3 ปีที่แล้ว

    Please complete flutter project easy way with firebase

    • @MuhammadAdnan-vs5cx
      @MuhammadAdnan-vs5cx 3 ปีที่แล้ว

      @@HeyFlutter but your tutorial is so difficult to understand as a beginner level

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Muhammad Adnan! 🙂
      check out the Firebase CRUD Tutorial where a whole app is created from scratch: th-cam.com/video/EV2DyrKOqrY/w-d-xo.html

  • @aziem462
    @aziem462 2 ปีที่แล้ว

    You are a nice person

  • @flutterquick
    @flutterquick 2 ปีที่แล้ว

    how to disable totally IconButton focusable

    • @flutterquick
      @flutterquick 2 ปีที่แล้ว

      And please show how to start from some text to input phone number: for example
      +251 00990990
      +251 is not editable or can not be clear
      I see on stackoverflow county code chooser but i don't need because of the country flag img.

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You amanuel gulilat! Follow this link: stackoverflow.com/questions/63138176/how-can-i-keep-the-iconbutton-inside-a-textfield-from-focusing-the-text-field-wh
      I hope you will get your answer 🙂

  • @lukengirubiu6492
    @lukengirubiu6492 3 ปีที่แล้ว

    Great

  • @aissoumonder3518
    @aissoumonder3518 3 ปีที่แล้ว

    when I clicked to the textfield, the border disapear

    • @aissoumonder3518
      @aissoumonder3518 3 ปีที่แล้ว

      @@HeyFlutter thanks men you're the best

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Hello, Badi elmaestro! Follow this link: stackoverflow.com/questions/49930127/outlineinputborder-disappears-when-the-textfieldform-is-selected-focused, I hope it will solve your problem. Thank You 🙂

  • @berkcan3475
    @berkcan3475 2 ปีที่แล้ว

    sorry but I cant like this because it is not deep dive covering some cases, eg: transparent with no extra height more than font size is not included here :'(

  • @nickreutlinger
    @nickreutlinger 3 ปีที่แล้ว

    Great Tutorial or should I say Gut gemacht? Man hört echt raus, dass deine Muttersprache Deutsch ist. Das ist aber ja nichts schlechtes:)

  • @ahmednegm7404
    @ahmednegm7404 3 ปีที่แล้ว +1

    I hope you write the code from the beginning and not just explain. Thank you

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      I tried to cover only the parts important for TextFields and didn't explain the other Flutter components. If it was too fast for you make sure to watch my beginner tutorial here first th-cam.com/video/CQZr-GXe__Y/w-d-xo.html
      This might help you also check the source code of this video out: github.com/JohannesMilke/textfield_example

  • @GraubiGames
    @GraubiGames 3 ปีที่แล้ว

    lmao i can hear that you are german ahahahah