Questions tagged [flutter-custompaint]

26 questions
5
votes
2 answers

How does CustomPainter.shouldRepaint() work in Flutter?

In Flutter, when creating a CustomPainter, there is an override method, shouldRepaint() that you can return either true or false... presumably to tell the system whether or not to repaint the view. And in the docs, the description for the method…
Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
4
votes
5 answers

is it possible to give gradient blur effect in Custom paint in Flutter like below picture?

I am coding the below output and i get the design i want but not able to get the blur effect inside the canvas. This is the output i am trying to build, This is what i have tried, Here is the Code, class MyCustomPainter extends CustomPainter…
2
votes
1 answer

Drawing line is offset when add an appBar - Flu

I'm making a drawing app by Flutter. I can draw a line normally when i put it in a Scaffold with only home. But the problem is when i add an AppBar, the line is offset down from the top, it's not the position where i touch in screen, it's moved down…
1
vote
0 answers

Curved lines in Graph view flutter

How do I achieve curved lines for connecting nodes in graphite or graph view? Like mind map curves I mentioned the image below but I want to implement the curved arrows in graphite.
1
vote
2 answers

Flutter Custom paint stack object over object

Is it possible to achieve or stack paint object over another like this. I tried many resources for custom painter but was not able to stack the text in center of the circle and applying gradient behind circle. Help appreciated.
1
vote
3 answers

Flutter - Hard color stop in linear gradient

I'm using CustomPaint to make a custom shape and I want to apply a color gradient but with hard color stops. Without color transitions. PS:I cannot use different Paints instead of gradient because of the custom shape. I checked the documentation…
1
vote
1 answer

How to make custom paint like eaten portion in flutter?

I want to get with custom painter something just like this. How I can draw it? For me not problem borders, gradients. I couldn't draw left part of my assets card. Please, help!
1
vote
0 answers

Custom brush patttern in flutter custom paint

I have created a drawing application in flutter. Its working very well for simple drawing but the issue is I want to implement brush patterns in drawing and there is no option for custom brush style/ stroke patterns in CustomPainter class. Please…
0
votes
0 answers

How to paint an image in CustomPaint, Flutter?

I need to paint over an image by CustomPaint class in my project but I don't know how to do it. Just like kid painting app, I need to paint over an image.
Armagan GOK
  • 81
  • 1
  • 7
0
votes
1 answer

Adding a container on top of custompaint Flutter

Hello fellow Flutter developers, I'm currently facing an issue with adding a container on top of a custom paint in my Flutter application. I have a custom paint widget that renders a specific drawing, and I would like to overlay a container widget…
0
votes
2 answers

In Flutter, how do we achieve this UI using custom paint or a custom clipper?

I want to achieve the attached UI widget using custom paint or any other suitable way around, which should work well across different device sizes. image
0
votes
0 answers

make a dynamic shape generator with flutter

Can I make a dynamic shape generator with flutter, like to upload the image of the shape and then draw it with custompaint or clipper? I have built some shapes , but the task should be dynamic generator
Kamla Saad
  • 11
  • 2
0
votes
0 answers

Flutter: Convert a straight line of arbitrary length and direction into a wiggly line

I recently started playing around with Flutter. I am also a complete beginner in terms object-oriented programming, so my question is probably quite basic, but I couldn't figure it out the whole weekend. I am using customPain to draw freely and/or…
0
votes
0 answers

How to add bevel and emboss effect in Flutter Custom Paint?

How to add the bevel and emboss effect to a Rectangle in Flutter Custom Paint? Expected something like this:
0
votes
2 answers

Create spiral in flutter

I want to create a spiral in flutter which will have a dynamic fill, something like shown below. One way to create is by using multiple semi-circles, but is there a better way to achieve this? The dynamic fill is orange in color and will depend on a…
Vipin Verma
  • 5,330
  • 11
  • 50
  • 92
1
2