---
title: "Comment by dhruvin prajapati on \"How to create dynamically generated and validate TextFields in Flutter\" | Hashnode"
description: "hey, there I have a little problem with this code, when I run your code and click the submit button &quot;Null check operator used on a null value&quot; this er"
url: "https://hashnode.com/posts/how-to-create-dynamically-generated-and-validate-textfields-in-flutter/638886b8a8e1ad46b6d51d5e/comment/640c24a4c0682632f4979509"
---

[Discussion](https://hashnode.com/posts/how-to-create-dynamically-generated-and-validate-textfields-in-flutter/638886b8a8e1ad46b6d51d5e)

Comment [How to create dynamically generated and validate TextFields in Flutter](https://hashnode.com/posts/how-to-create-dynamically-generated-and-validate-textfields-in-flutter/638886b8a8e1ad46b6d51d5e)

[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
