Part 3: Great Composed Component Refactor

This commit is contained in:
Luan Nico
2020-08-08 19:49:10 -04:00
parent 23f13c395a
commit 997f36edc4
31 changed files with 388 additions and 302 deletions

View File

@ -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);
}
}