theme library
What every widget of flutter3d_game_ui reads: the colours it is drawn in and the words it says.
- GameUiTheme: a
ThemeExtensionwith the panel, touch, map and HUD colours, so a game restyles every widget here in one place. - Flutter3dGameLocalizations: every default string a widget here would otherwise have typed in English, with English and Russian shipped and a delegate an app lists beside Flutter's own.
- Wcag and ContrastPair: the numbers WCAG 2.2 at level AA asks of these widgets, and the pairs of colours the theme holds to them over any frame (GameUiTheme.contrastPairs).
Both were flutter3d_game's until 1.0.0-rc.1, when the widgets that read
them moved here.
Classes
- ContrastPair
- Two of a theme's colours a player has to tell apart, and how far apart they have to be.
- Flutter3dGameLocalizations
- What the game layer's widgets say, in the player's language.
- GameUiTheme
- The colours of a game's own screens: the settings panel, the heads-up display, the sheets around play, the maps and the touch controls.
- Wcag
- The numbers WCAG 2.2 at level AA asks of what this package draws, and the arithmetic they are checked with.