TextPaint to use TextStyle instead of TextPaintConfig (#1086)

* `TextPaint` to use `TextStyle` instead of `TextPaintConfig`

* Update packages/flame/lib/src/text.dart

Co-authored-by: Pasha Stetsenko <stpasha@google.com>

* Removed BaseTextConfig and TextPaintConfig

* Update text docs

* Apply suggestions from code review

Co-authored-by: Erick <erickzanardoo@gmail.com>

* Remove generics

* Update TextBoxExample

* Update text examples variable names

* Fix TextPaint in collision_detection example

Co-authored-by: Pasha Stetsenko <stpasha@google.com>
Co-authored-by: Erick <erickzanardoo@gmail.com>
This commit is contained in:
Lukas Klingsbo
2021-11-13 16:38:06 +01:00
committed by GitHub
parent cd7a0bbb65
commit 3cb23ef530
20 changed files with 154 additions and 275 deletions

View File

@ -22,7 +22,7 @@ class AudioGame extends FlameGame with TapDetector {
static Paint black = BasicPalette.black.paint();
static Paint gray = const PaletteEntry(Color(0xFFCCCCCC)).paint();
static TextPaint text = TextPaint(
config: TextPaintConfig(color: BasicPalette.white.color),
style: TextStyle(color: BasicPalette.white.color),
);
late AudioPool pool;