{"id":24258708,"url":"https://github.com/teerasej/nextflow_widget_today_form_1","last_synced_at":"2026-07-13T01:31:17.216Z","repository":{"id":148108615,"uuid":"272456246","full_name":"teerasej/nextflow_widget_today_form_1","owner":"teerasej","description":"Flutter 3 นาที รอบนี้มาดูวิธีสร้าง Form แบบจริงจัง และใช้ TextFormField พร้อมวิธีตรวจข้อมูลก่อนส่งขึ้น server,เริ่มต้นเรียนรู้ สร้างแอพด้วย Google Flutter กับโค้ชพลได้ที่ลิ้งค์เลย","archived":false,"fork":false,"pushed_at":"2020-06-23T16:58:22.000Z","size":29130,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T03:33:30.421Z","etag":null,"topics":["dart","form","form-validation-flutter","google-flutter","thai-citizen-id","validator-textformfield"],"latest_commit_sha":null,"homepage":"https://nextflow.in.th/google-flutter-online/","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teerasej.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-15T14:10:40.000Z","updated_at":"2020-09-24T03:38:53.000Z","dependencies_parsed_at":"2023-06-18T19:17:41.150Z","dependency_job_id":null,"html_url":"https://github.com/teerasej/nextflow_widget_today_form_1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/teerasej/nextflow_widget_today_form_1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teerasej%2Fnextflow_widget_today_form_1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teerasej%2Fnextflow_widget_today_form_1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teerasej%2Fnextflow_widget_today_form_1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teerasej%2Fnextflow_widget_today_form_1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teerasej","download_url":"https://codeload.github.com/teerasej/nextflow_widget_today_form_1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teerasej%2Fnextflow_widget_today_form_1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35407393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-12T02:00:06.386Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","form","form-validation-flutter","google-flutter","thai-citizen-id","validator-textformfield"],"created_at":"2025-01-15T05:48:52.519Z","updated_at":"2026-07-13T01:31:17.202Z","avatar_url":"https://github.com/teerasej.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter 3 นาทีกับโค้ชพล: สร้าง Form จริงจัง และ validate ความถูกต้องของข้อมูลใน TextFormField\n\nโปรเจค Flutter สำหรับฝึกฝนเรียนรู้การใช้งาน Flutter กับโค้ชพลนะครับ ในรอบนี้มาสร้าง Form รับข้อมูลตั้งแต่เริ่มต้นกัน โดยจะมีการใช้ Widget แบบต่างๆ หลายตัว พร้อมการตรวจสอบข้อมูล (Validation) ใน Form ด้วย\n\n- วิธีสร้าง `Form`\n- วิธีใช้ `TextFormField`\n- การกำหนดให้ซ่อนรหัสผ่านด้วย `obscureText`\n- การสร้างและใช้งาน Validation function\n- การสร้าง และใช้งาน FormState Key\n- การควบคุม Form ด้วย Form Key\n\n## ตอนที่ 2 การล้างข้อมูลใน Form\n\n- การใช้ FormKey ควบคุมข้อมูลใน Form\n- การใช้ `reset()` ของ FormState ในการล้างข้อมูลใน TextFormField \n\n## ตอนที่ 3 การเช็คเลขบัตรประชาชน 13 หลักด้วย Dart Package\n\nในคลิปนี้มาใช้ Dart Package ของโค้ชพล ในการตรวจสอบการกรอกข้อมูลรหัสประจำตัวประชาชน 13 หลักกัน ใช้ง่าย ใช้กับ TextFormField ได้ทันทีด้วย\n\n- แนะนำให้รู้จักกับ Dart Package: [Thai Personal ID](https://pub.dev/packages/nextflow_thai_personal_id)\n- การ import ตัว package\n- การกำหนด error message ในกรณีที่กรอกข้อมูลผิด\n- การใช้งาน Validator กับ TextFormField\n\n## ตอนที่ 4 การยืนยันคำสั่งผู้ใช้ ด้วย AlertDialog\n\n- เข้าใจความสำคัญของ AlertDialog\n- วิธีเรียกใช้คำสั่ง showDialog()\n- วิธีสร้าง AlertDialog\n- แนวคิดในการใช้ AlertDialog\n- วิธีการกำหนด content ให้ AlertDialog\n- วิธีการกำหนดปุ่ม Actions ให้ AlertDialog\n\n\n## ดูคลิปทำตามได้ที่นี่เลย \n\nสามารถกด subscribe ติดตามคลิปเรื่อง Flutter และคลิปใหม่ๆ ได้ผ่านช่อง Youtube ของโค้ชพลนะครับ \n\n- ตอนที่ 1 สร้างและ validate ข้อมูลใน Form: https://youtu.be/3G0xE0musUg\n- ตอนที่ 2 ล้างข้อมูลใน Form: https://youtu.be/cal9JSDitNM\n- ตอนที่ 3 การเช็คเลขบัตรประชาชน 13 หลัก: https://youtu.be/hB4-baWk6lU\n- ตอนที่ 4 การยืนยันคำสั่งของผู้ใช้ ด้วย AlertDialog https://youtu.be/qlli0MPF0jY\n\n## เริ่มต้นเรียนรู้สร้างแอพ iOS และ Android ด้วย Google Flutter \n\nออกแบบให้เข้าใจง่าย ฝึกทำและเรียนรู้จากแอพจริง ดูรายละเอียดและซื้อได้ที่ลิ้งค์ด้านล่างเลยครับ \n\nhttps://nextflow.in.th/google-flutter-online/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteerasej%2Fnextflow_widget_today_form_1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteerasej%2Fnextflow_widget_today_form_1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteerasej%2Fnextflow_widget_today_form_1/lists"}