mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 08:27:36 +08:00
feat: Support text align on new text rendering pipeline (#3147)
Support text align on new text rendering pipeline.  
This commit is contained in:
@ -67,7 +67,15 @@ void addRenderingStories(Dashbook dashbook) {
|
||||
)
|
||||
..add(
|
||||
'Rich Text',
|
||||
(_) => GameWidget(game: RichTextExample()),
|
||||
(context) => GameWidget(
|
||||
game: RichTextExample(
|
||||
textAlign: context.listProperty(
|
||||
'Text align',
|
||||
TextAlign.left,
|
||||
TextAlign.values,
|
||||
),
|
||||
),
|
||||
),
|
||||
codeLink: baseLink('rendering/rich_text_example.dart'),
|
||||
info: RichTextExample.description,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user