You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello ...
first thanks you for developing awesome library
I noticed that drawParagraph function didn't have any touch detector
so I created my workaround solution :
1- draw text via textPainter class, like this :
double x = 100; // Offset -> x
double y = 100; // Offset -> y
final textSpan = TextSpan(
text: 'Hello world',
style: TextStyle(color: Colors.black, fontSize: 20),
);
final textPainter = TextPainter(
text: textSpan, textDirection: TextDirection.ltr
);
textPainter.layout(minWidth: 0, maxWidth: double.infinity);
textPainter.paint(canvas, Offset(x, y));
// canvas is the original canvas ( not TouchyCanvas )
2- create new transparent rect with same size as text like this:
Hello ...
first thanks you for developing awesome library
I noticed that drawParagraph function didn't have any touch detector
so I created my workaround solution :
1- draw text via textPainter class, like this :
2- create new transparent rect with same size as text like this:
now you could do anything like translating 👍
just don't forget to translate text and rect
waiting for your big update !!
The text was updated successfully, but these errors were encountered: