Print
Details: Category: บทความ Flutter | Published: 12 March 2019 | Hits: 3262

จากบทความที่แล้ว เรื่องการกำหนด ชนิด Keyboard ของ TextFormFild เป็น email ที่นี่เราจะมาดู Password บ้าง

Screen Shot 2562 02 09 at 061314

 

มาสเตอร์ สร้าง TextFormField ของ Password

Screen Shot 2562 02 09 at 061323

 

โค้ดเดิม

 

Screen Shot 2562 02 09 at 061330

 

เพิ่ม  เมธอด passwordField ที่ return เป็น Widget TextFormField

 Screen Shot 2562 02 09 at 061351

ได้มาละ TextFormField ของเรา

Screen Shot 2562 02 09 at 061454

 

 สังเกตุ ใน TextFormField เพิ่ม obscureText เป็น true ครับ

Screen Shot 2562 02 09 at 061504

ได้มาละ Password Security ของ เรา สำหรับใครที่ ทำไม่ได้อย่างไร ? ลองมาเรียน Flutter ตัวต่อตัว อีกทีที่ https://www.androidthai.in.th/private-project-android-flutter-course.html