Thinking & coding: IconThemes and cleaning up the code.
For the time being I will leave the NavigationRail in my project for a while, because a solution would be in the making. I'll keep you informed. But now we have to move on with the project.
Themes
The first part of my programming session today was implementing the NavigationRail IconThemes. I actually didn't have any problems with this code. I created my own themes in my Style.dart file and then implemented them. As described in the documentation. Very simple actually. Exactly the same as applying a TextTheme.
Clean up
Because I found it unclear when reading the code, I decided to clean up the code. Clean up and organize so that it is clear to anyone reading the code. And easy to understand.
The first major part with the most work was clearing the MainApp. According to the conventions, this mainApp file should be as empty as possible and only ensure that the app starts. And that it starts from the right place. And of course tidy is always neat.
Everything is now grouped in a very logical way. Also in terms of what I want to achieve. I want to be able to adapt this app to the customer via 1 single file. No searching in the code but all together.
Every widget that needs to be reused has been removed from the code and placed in its own file. So everything is currently scalable to easily adaptable to customer needs. Mission acomplished.
This cleaning up took some time, but it is an investment in my project that will be repaid twice as much.
Until the next,
Do, believe and be happy
Stefaan
Comments
Post a Comment