Courses

Flutter v2 Mobile App with Laravel API

Edit Category: Forms, TextFormFields and HTTP Headers

Previous: Get Categories from API into ListView: http, Future, await/async
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

avatar
You can use Markdown
avatar
You can use Markdown