Want to access all of our courses? (30 h 09 min)
You also get:
Already a member? Login here
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
Tell us what you like or what we can improve
Feel free to share anything you like or dislike about this page or the platform in general.
Your feedback has been received. We truly appreciate you taking the time to help us improve.
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