UI Constants
🚀 Feature Proposal
As a game client developer, I want to have constants regarding common UI styles (like corner radius for dashboard cards etc.)
Motivation
This helps the developer to code faster by using the preset values. Furthermore, this helps at having a structured and uniform app design.
Technical Details
Could be implemented by just having one (or more) constants.dart file. Then use import 'constants.dart' as Constants;
Example
Example usage:
In constants.dart:
const int SmallCardBorderRadius = 12.0;
In widget file use:
import 'constants.dart' as Constants;
...
var r = Constants.SmallCardBorderRadius;