Skip to main content

Edit Category: Forms, TextFormFields and HTTP Headers

Premium
13:01

The Full Lesson is Only for Premium Members

Want to access all of our courses? (36 h 00 min)

You also get:

61 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Rehan Azher avatar

Not sure why but i was required to make some changes to save categories signature : I had to pass the BuildContext as variable : Future saveCategory(BuildContext context)

And then under onPressed of save button, i needed to pass context:

onPressed: () =>saveCategory(context)

Otherwise _formKey.currentState was always null