Rotate painted text about its center

I'm trying to rotate text painted on a Canvas about it's center. Instead, in the below code, the text rotates about the top left corner of the text when I press the fl...

Flutter CustomPainter Resize

So I've been trying to resize a <code>CustomPainter</code> and keep the look as if it was pixel art, but I haven't been able to make it. <pre class="lang-dart pret...

How to drag multiple objects inside a Container

I'm trying to have multiple images inside a big container and be able to move them around and rotate them, as shown in the image below: <a href="https://i.stack...

How to create a blank image with a specified size in Flutter

I want to create a blank image with a white background and a specified size in Flutter, then I may add other images onto this blank image later to merge them as a new...

Propagate click behind a widget

I have a Stack with two widgets inside. I'm trying to detect the click on the bottom widget of the Stack, which is behind the top one. I am using <code>HitTestB...

Flutter - How to move and zoom Canvas drawings without AGAIN running something like the CustomPainter paint method?

I have tried using the methods Transform.scale (for zooming ) and Transform.translate (for the moving), but they seem to trigger th...

Flutter web PaintImage() on Mobile Browser error

I am trying to get Canvas painted image. It works on web and phone. But when I test it on Mobile Browser the PaintImage() or canvas.drawImage() doesn't work and have e...

How to animate line draw in custom painter in Flutter?

I want to animate the line drawing in custom painter canvas. So far what I can do is create two circles at two points and then create a line between those two points....

Change the color of vertices and lines using canvas.drawVertices

The regular <code>Paint</code> object doesn't seem to alter the appearance of any lines drawn using <code>drawVertices</code>. Here's what I've tried. <pre class=...

Flutter canvas.drawline border radius

Is it possible to give the border radius of Flutter canvas.drawline? <pre><code>void paint(Canvas canvas, Size size) { final paint = Paint(); paint.color =...

How can I draw contour on image using coordination data obtained by Firebase MLkit?

I want to draw contour on image by coordination data which is obtained by Firebase MLkit - face detection function. This feature gives coordination information...

Flutter : Draw over a photo and save the photo with my drawing

I am stuck to find a solution for drawing over a photo and then save this photo including the drawing on the phone. I am able to draw over it, but how to save t...

Canvas with Scale/Pan in list View. How to disable scroll

Sorry for my English. Ask if you cant understand something. Hello! In general, I have a listView, in it is one of the elements of the gestureDetector, in which...

Flutter Callback Getting Called for Every Frame

I'm learning about custom painting, and I understand that I can tell flutter when to repaint a canvas. But if I'm developing a game, I think things would go smoother...

How to draw vertical text using canvas.drawParagraph in Flutter

I want to draw vertical text directly using canvas, but I didn't find such methods, I only found related parameter <strong>TextDirection</strong>, but it only s...