FormState vs. FormFieldState ใน Flutter

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

Created 3mo | Feb 28, 2024, 1:30:09 PM


Login to add comment

Other posts in this group

Topic: 11 Understanding Canvas in Flutter

Hello Devs, Today we talk about Canvas in Flutter. Sometimes, We need something more customized or fancy. That's where the Canvas widget comes in! In this guide, we'll dive into how you can use the Ca

May 13, 2024, 6:40:03 AM | Hashnode flutter
Flutter Riverpod Tutorial Part 2: Asynchronous Providers (FutureProvider and StreamProvider)

Part-1 Link : FutureProvider

FutureProvider allows us to work with Futures in our Flutter Application

It automatically handles the lifecycle of asynchronous operation.

So it provides us with a way

May 12, 2024, 7:20:03 PM | Hashnode flutter
Key Challenges Faced by Every College Graduate

Introduction In today’s world, the competition for grabbing a fresher job in the software industry is as hard as grabbing a good seat after JEE. Folks are confused as hell about what to do and what no

May 12, 2024, 4:50:07 PM | Hashnode flutter
Converting Your WordPress Website into a Flutter App: A Comprehensive Guide

Introduction: In the rapidly evolving world of technology, the demand for cross-platform mobile applications is on the rise. Businesses and developers are constantly seeking efficient ways to reach wi

May 12, 2024, 12:20:14 PM | Hashnode flutter
What’s next for Flutter?

Now that the dust has settled on the news of layoffs at Google, let’s take a quick look at what this means for Flutter. Unnecessary drama The news of layoffs in the Flutter team had no detail — was 1%

May 12, 2024, 10:10:05 AM | Hashnode flutter
Flutter Riverpod Tutorial Part 1: Provider and StateProvider, StateNotifierProvider, ChangeNotifierProvider

Setup Riverpod Before we start using Riverpod. Let's set it up in our Flutter Project Add the dependency: flutter pub add flutter_riverpod

Wrap our application with ProviderScope: This is necessary f

May 11, 2024, 6:40:07 PM | Hashnode flutter
The Ultimate Guide to GoRouter: Navigation in Flutter Apps Part -3 (Custom Transitions)

Part -1: https://tinyurl.com/k3f64hwv Part -2: https://tinyurl.com/3azk6jjj Starting with custom transitions in GoRouter is a fantastic way to enhance the user experience of our Flutter application by

May 10, 2024, 5:40:03 PM | Hashnode flutter