If we look at our categories_list.dart file - it is getting a bit long. So let's make this lesson about refactoring some code into separate files. Here's what we will do:
- Move our
Modelinto its own file - Move all of our API calls into a service file
- Move the Category Edit button into its own file (along with all the logic)
These actions will set us up for a more modular and maintainable codebase.
Moving Category Model
Let's start by moving our simplest code - the Category model. Create a new...
Hi, I stopped following tutorial at this point. I've been copy & pasting and fixing minor issues all the way, but at this point are more issues I can't fix.
The login part ever worked. I had to register each time to get the category listing, but it doesn't works fine, because users are not registered and all categories are listed anyway.
I tried copying whole code from repository but didn't get working neither.
I would suggest to include some instructions to get the flutter code on the repository working.
Hi, it is possible that versions have changed and there are differences.
In any case, there is no special instructions to really launch it... At least at the time of writing there was none.
May I ask about your dev env? What are you using? And what are the issues you encounter?
I will revisit this tutorial, but I am not sure what might be broken when following. It is possible we missed some information, but I do need some examples.
Thanks!