FormState vs. FormFieldState ใน Flutter

TLDR; FormState จะเก็บค่า state เช่นการ validate สำหรับฟอร์มทั้งฟอร์ม แต่ FormFieldState จะเก็บค่า state สำหรับ TextFormField เพียงอันเดียว ในตอนที่เราโค้ดฟอร์มในแอพพลิเคชั่นของเรา เราจะต้องใช้ GlobalKey ที่ cast ด้วย FormState , GlobalKey

Vytvořeno 2mo | 28. 2. 2024 13:30:09


Chcete-li přidat komentář, přihlaste se

Ostatní příspěvky v této skupině

Get Your Location On: A Step-by-Step Guide to Creating a Flutter App with Riverpod and Geolocator with Clean Architecture

Intro: While I was working on our upcoming app GotInfo. I needed to handle location permissions for my user since we use a google map to show the nearby posts pertinent to the user. While I could just

28. 4. 2024 4:40:03 | Hashnode flutter
An Overview of Flutter for Beginners

What's Flutter? SDK from Google for building Cross-Platform Apps. App Build With Flutter

BMW

PUBG

eBay

Tencent

Google Play Console

Bank Jago

Flutter Installation To install just go to https://

27. 4. 2024 19:30:05 | Hashnode flutter
Mastering JavaScript Loops: A Comprehensive Guide

What is a loop? Loops are a sequence of instructions that is continually repeated until a certain condition is reached. In short, they are used to do repetitive task Types of JavaScript loop

for loop

27. 4. 2024 8:10:08 | Hashnode flutter
How to Implement Screen Share in Flutter Video Call App for Android?

📌 Introduction Implement Screen Share functionality into your Flutter video call app for Android to enhance user experience and collaboration. With Screen Share, users can seamlessly share their devic

26. 4. 2024 13:50:11 | Hashnode flutter
Flutter Video Call App With Firebase and ZegoCloud

Integrating video chat , calls ,video conferencing into your flutter apps can be tricky and difficult , you will have to work with web sockets and webRTC but what if l tell you it's very easy with Zeg

25. 4. 2024 21:50:05 | Hashnode flutter
Counter app in Flutter

Hi there, I have the journey of learning flutter. I did learn Flutter almost 3 years back for some time but didn't work on any significant flutter project. I want to use the Github repo with a differe

25. 4. 2024 12:50:03 | Hashnode flutter
Topic: 6 Understanding Dependency Injection

Hello devs, Today, we'll discuss Dependency Injection. Many tasks that we typically write manually in code can be automated with the help of dependency injection. We simply need to instruct the DI fra

25. 4. 2024 10:30:18 | Hashnode flutter