mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Part 3: Great Composed Component Refactor
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/painting.dart';
|
||||
|
||||
import '../text_config.dart';
|
||||
@ -38,9 +39,10 @@ class TextComponent extends PositionComponent {
|
||||
height = _tp.height;
|
||||
}
|
||||
|
||||
@mustCallSuper
|
||||
@override
|
||||
void render(Canvas c) {
|
||||
prepareCanvas(c);
|
||||
super.render(c);
|
||||
_tp.paint(c, Offset.zero);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user