Skip to content

Commit 0c1a28c

Browse files
committed
small additions.
1 parent b18d0bb commit 0c1a28c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

lib/src/display/text.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ class GText extends GDisplayObject {
298298
ui.Locale locale,
299299
ui.Paint background,
300300
ui.Paint foreground,
301+
String ellipsis,
302+
int maxLines,
301303
List<ui.Shadow> shadows,
302304
List<ui.FontFeature> fontFeatures,
303305
ui.TextAlign textAlign = ui.TextAlign.left,
@@ -335,6 +337,8 @@ class GText extends GDisplayObject {
335337
paragraphStyle: ui.ParagraphStyle(
336338
textAlign: textAlign,
337339
textDirection: direction,
340+
maxLines: maxLines,
341+
ellipsis: ellipsis,
338342
),
339343
);
340344
doc?.addChild(tf);

lib/src/tween/src/gtween.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,18 @@ class GTween {
518518
}
519519
}
520520

521+
static bool isTweening(Object target){
522+
var t = _first;
523+
while (t != null) {
524+
var next = t._next;
525+
if (t.target == target || t._animatableTarget == target) {
526+
return true ;
527+
}
528+
t = next;
529+
}
530+
return false ;
531+
}
532+
521533
/// Removes a Tween based on the the target object.
522534
static void killTweensOf(Object target) {
523535
var t = _first;

0 commit comments

Comments
 (0)