Questions tagged [custom-painting]
147 questions
0
votes
0 answers
Quarter Circle does not fit my initial circle Flutter Painter
I'm trying to make a loading icon for my loading screen using CustomPaint widget. Unfortunally, it doesn't work as expected...
My quarter circle does not fit in my primary circle, here's a screen of it :
I don't understand why it is doing…

Zouglou
- 89
- 1
- 11
0
votes
1 answer
Polybrush errors in unity 2019.4
i tried to import Polybrush in my unity project on editor 2019.4, and it seems causing many errors, is there a way to correct the errors and use Polybrush again ?
Thanks in advance.

WildFrog
- 21
- 5
0
votes
1 answer
How to draw the pin on path with CustomClipper in flutter
How I can draw this pin on the path while using CustomClipper?
class ErrorClipper extends CustomClipper {
ErrorClipper({
this.radius = 5,
this.offset = 10,
this.nipSize = 10,
});
final double radius;
final double offset;
…

Mateen
- 418
- 1
- 3
- 12
0
votes
2 answers
How to make a button with rounded edges in flutter?
Making a rounded corner button is so simple, but I want to make a button that its edges are also rounded like this:
maybe I should use CustomPaint?

Mahdi Dahouei
- 1,588
- 2
- 12
- 32
0
votes
1 answer
How to make a customPaint with CarouselSlider
I'm trying to Achieve the Above Design :
what what I did is creating CarouselSlider with a custom painter with help of stack and position property
what is not working for me is that can't laying any other image or text over my …

robo
- 115
- 10
0
votes
0 answers
How to make CustomPaint srollbar in flutter
I used this solution for drawing page in my app via CustomPaint
https://medium.com/flutter-community/drawing-in-flutter-using-custompainter-307a9f1c21f8
I wonder how to make the drawing space scrollbar in all directions because I need more space to…

blue492
- 540
- 1
- 6
- 21
0
votes
0 answers
flutter can not drawImage at exact offset with canvas.drawImage
Hello i am creating flutter app and trying to draw image and i successfully did that from below answer
This is the main answer from where i can get idea about dropping pin on tap
From this answer i am drwaing image successfully
but issue is that pin…

Vishal Parmar
- 615
- 4
- 31
0
votes
1 answer
Is there a way to display an item in the middle of a custom painted chart in Swing?
Is there a way to display an item in the middle of the chart?
Using the chart to output values from the database.
I'd like to place the next item in the center of each pie.
Is there a way? Below is the code.
public class DrawingPiePanel extends…

이윤혁
- 3
- 1
0
votes
1 answer
Shouldn't use getGraphics() on Jbutton.update, Why?
I always do
Jbutton.setEnabled(false);
Jbutton.update(Jbutton.getGraphics());
when disabling a button, but someone told me that Jbutton.update(Jbutton.getGraphics()); shouldn't be used, or at least not used that way. Why? is it not efficient? Is it…

user14618910
- 15
- 2
0
votes
1 answer
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. But I don't know how to animate the line as if it is going from one point to the…

Sajib
- 57
- 1
- 10
0
votes
1 answer
My rectangle Animation does not enlarge from the center but from the first vertex expanding to the right
I am trying to create a square animation from the centrum of the screen that opens up from the center(starting really small and enlarge itself growing from the centrum of the square, unfortunately what is happening with my code is that giving the…

John smith
- 67
- 7
0
votes
0 answers
child customPaint can't click
GestureDetector(
// behavior:HitTestBehavior(),
onTap: (){
print('hello word');
//print(gl);
// print(value.localPosition.dx);
},
child:
CustomPaint(
size: Size(setRawSize(600), setRawSize(290)),
…

man vice
- 1
0
votes
1 answer
flutter: CustomPaint widget turned blank when put in a Column
I've got something super bizarre:
The following code paints a rectangle with CustomPaint. This version works fine
import 'package:flutter/material.dart';
class MyApp extends StatefulWidget {
@override
_ MyAppState createState() => _…

kakyo
- 10,460
- 14
- 76
- 140
0
votes
1 answer
dart/flutter: CustomPaint updates at a lower rate than ValueNotifier's value update
I use dart FFI to retrieve data from native side, and show the data with flutter CustomPaint.
I use ValueNotifier to control CustomPaint repaint.
Code: Poll data at a rate
With a state class, I poll data from native side periodically, and assign it…

kakyo
- 10,460
- 14
- 76
- 140
0
votes
1 answer
Draw canvas in flutter
I am using drawDRRect for drawing rectangle, and want that inner color will be Colors.green and outer color Colors.blue how can I control Paint()?
canvas.drawDRRect(
RRect.fromRectAndCorners(
Rect.fromLTWH(
0,
…

esfsef
- 193
- 3
- 11