Apr 8, 2024
Your approach reminds me jetpack compose design system. Why not re-appropriate MaterialTheme ? The Color Scheme is already big enough to store all your colors. And using it will ensure that a design, mixing material widgets and your own widget, is consistant.
The Flutter view extension is a really good idea. On my side I develop a widget to handle layouts on different kind of devices, but it's too heavy for small layout adaptations...