Questions tagged [flutter-custompaint]
26 questions
0
votes
0 answers
How to make Custom shape Like this with Container in Flutter?
How to create this shape in flutter?
I tried custom paint but didn't achieve this result

Anas Ayub
- 13
- 1
- 4
0
votes
0 answers
CustomPainter's paint method is not getting called before WidgetsBinding.instance.addPostFrameCallback in case of Multiple navigation
I have a Flutter StatefulWidget and in initState() method I am using WidgetsBinding.instance.addPostFrameCallback to use one instance variable (late List _tracks). like -
WidgetsBinding.instance.addPostFrameCallback((_) {
for(itr = 0;…

Aman Prasad
- 1
- 1
0
votes
0 answers
Independent Effect of Custom Paint widget in flutter
When I click on List view item it changes. I want when index changes custom paint effect of previous image save and want to move this paint part only to next widget if user selects apply changes to "yes". When I change by clicking paint and eraser…

Nimra
- 23
- 3
0
votes
0 answers
Flutter: GIF Image Asset paintImage() to CustomPaint doesn't Animate
I want to add an Animated GIF asset to a CustomPaint widget, the GIF gets drawn but it doesn't Animate.
I load the animated gif image from assets like this:
Future loadAndAssignImageAssets() async {
fireImage = await…

Abdullah Saleh
- 21
- 1
- 1
0
votes
2 answers
How to draw line with curve using Custom Paint for graph - Flutter
Im working on a designing a graph in flutter using CustomPaint.
I have achieved this design using canvas.drawLine().
My question is how to make the sharp edges of line to curved smooth edges?.
My code with drawline()
List points = const [
…

Sugan Pandurengan
- 667
- 15
0
votes
2 answers
How to make Custom shape Container in Flutter?
I have to make container which bottom is triangular shape as below image.
How to create this shape in flutter?

Dhaval Chaudhari
- 417
- 8
- 22
0
votes
1 answer
I wanna bucket fill an image but getting how to do it
I am able to color the house but the problem is when i try to color a different section pervious color is being disappear. but the color is being removed when i try to color in different section. I have tried everything i could think of but i am not…

saurav
- 17
- 3
0
votes
1 answer
How to show a part of the circle using custom painter?
So I have this card widget to create
how can I create the golden part of the circle using custom painter?.I can create a full circle but how can I just display that small part of the circle and hide the rest?
Card(
color: Colors.grey,
…

Kavishka Rajapakshe
- 537
- 1
- 8
- 23
0
votes
0 answers
Flutter CustomPaint Moving a circle along a path
I'm learning CustomPaint by making my own line chart. I have already made the chart itself so now i'm making the things around it. One them is a trackball/line whenever you pan. So far i've made the dashed line from top to bottom, and it works…

bjernie
- 158
- 3
- 13
0
votes
1 answer
How to skip spaces with CustomPaint with Flutter?
I'm trying to achive an ARC in flutter, but with "holes" in it.
What I have:
screen image
What I want:
achive image
My code:
class ProgressArc extends CustomPainter {
bool isBackground;
Color progressColor;
double arcLength;
ProgressArc({
…

Dee S
- 18
- 3