Android “res” folder on Flutter
Nov 21, 2020
The Android Framework is a feature-rich ecosystem with many conventions. As an Android developer migrating to Flutter, which has somehow a loose framework, I missed the troubleshooter “res” folder. So I created a similar structure to use statically defined resources like strings, colors, themes, and images.
Nothing more than expected from a strongly typed language fanboy and productivity lover.
So instead of using:
Color(0xFF787790)
// or
AssetImage('path/to/image')
// use
colors.primary
// or
images.appIcon
Check out the GitHub repository.