---
title: "Discussion on \"How to create dynamically generated and validate TextFields in Flutter\" | Hashnode"
description: "Discussion on \"How to create dynamically generated and validate TextFields in Flutter\". In this post, we will look at how to create a dynamic generating and validated form with TextFormFields in Flutter."
url: "https://hashnode.com/posts/how-to-create-dynamically-generated-and-validate-textfields-in-flutter/638886b8a8e1ad46b6d51d5e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create dynamically generated and validate TextFields in Flutter](https://iametornam.hashnode.dev/how-to-create-dynamically-generated-and-validate-textfields-in-flutter?utm_source=hashnode&utm_medium=feed)

In this post, we will look at how to create a dynamic generating and validated form with TextFormFields in Flutter.

Dec 1, 2022 · 4 min read · iametornam.hashnode.dev  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#dart](https://hashnode.com/tag/dart)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#mobile-apps](https://hashnode.com/tag/mobile-apps)
-   [#articles](https://hashnode.com/tag/articles)

## Written by

[Bright Etornam Sunu](https://hashnode.com/@iamEtornam)

@iamEtornam · Accra, Ghana

  
[View profile](https://hashnode.com/@iamEtornam)

Flutter & Dart GDE || Mobile & Backend Engineer || Technical writer || Community builder

Etornam is a Software Engineer and a Google Developer Expert(GDE) who specialises in developing resilient Mobile applications for android &amp; iOS and web services. He understands modern software engineering and is always looking for a better approach to designing software. Aside from his day-to-day activities as a software engineer, he actively contributes to open-source projects and co-organises at Flutter Africa.

## Responses 3

Markdown supported · ⌘↵ to post

[dhruvin prajapati](https://hashnode.com/@dhruvinprajapati)

[Mar 11, 2023](https://hashnode.com/posts/how-to-create-dynamically-generated-and-validate-textfields-in-flutter/638886b8a8e1ad46b6d51d5e/comment/640c24a4c0682632f4979509)

hey, there I have a little problem with this code, when I run your code and click the submit button "Null check operator used on a null value" this error came on this line " final valid = \_formKey.currentState!.validate();"

can you help me out

[Collins Olokpedje](https://hashnode.com/@Unorthodox-Developer)

[Dec 2, 2022](https://hashnode.com/posts/how-to-create-dynamically-generated-and-validate-textfields-in-flutter/638886b8a8e1ad46b6d51d5e/comment/6389c847a4994a68b810f484)

Wow in the friend that tweeted it and now I have seen solution that looks like it came from stack overflow. Nice one bro

[Rafik Abubakari](https://hashnode.com/@Raf)

[Dec 1, 2022](https://hashnode.com/posts/how-to-create-dynamically-generated-and-validate-textfields-in-flutter/638886b8a8e1ad46b6d51d5e/comment/6388e663a347f35e460d0ee0)

It is very helpful and more understandable. Great Job
