110 questions
4
votes
1
answer
186
views
How to match this curved profile banner shape?
I’m trying to replicate a custom curved profile banner shape using CustomPaint in Flutter.
This is the desired shape I’m trying to achieve — notice how the bottom of the banner has a smooth inward ...
0
votes
0
answers
75
views
How to make an arrow follow a path in Flutter and adjust its angle based on the path's direction?
I am working on a Flutter project where I need to animate an arrow along a path. The arrow should not only move along the path, but also continuously adjust its angle to match the direction of the ...
0
votes
0
answers
115
views
How to create a curved cutout in a Bottom Navigation Bar in Flutter?
I’m trying to create a custom bottom navigation bar in Flutter with a curved cutout similar to the following image:
The curve is not a perfect semicircle; instead, it has a smooth transition on the ...
0
votes
0
answers
31
views
Flutter - distortion when saving image with CustomPaint
I'm developing a feature in a Flutter application where users can capture a photo using the camera package. After capture, the image is displayed on the screen, allowing users to draw lines and points ...
0
votes
0
answers
73
views
CustomPainter making unnecessary connections between points flutter
I was trying to build a fourier series illustration I found and I was very close to completing when this weird problem occurred. The first illustration in this part of the wikipedia page is what I am ...
0
votes
1
answer
100
views
I want to create below app design using customPainter in flutter
I want to create appBar like below but i don't have good knowledge of customPainter.
It should be like below design.
I have attached the image
unable to do this using cubic and beizer curve in flutter....
0
votes
0
answers
122
views
How to make radius & border in corner triangle using custom painter in flutter
I am trying to create a triangle shape with rounded corners and a shadow using Flutter's CustomPainter. My goal is to achieve a design similar to this:
I attempted to implement it using CustomPainter ...
0
votes
0
answers
94
views
How to create a smooth transition from a rounded corner to a diagonal line?
I'm working on a custom shape in Flutter using CustomPainter, and I need to create smooth transitions between rounded corners and diagonal lines. The goal is for these transitions to look seamless and ...
0
votes
2
answers
111
views
How can I create a circle bubble with border in Flutter CustomPainter?
The following is a reference.
How can I create a border-only bubble with CustomPainter?
But what I want to achieve is a balloon for the circle. The image will be as follows.
If implemented as follows,...
0
votes
1
answer
117
views
How Can I Create an AppBar That Looks Like This:
How could i achieve such AppBar,The AppBar itself does not have to be an actual AppBar widget.
if it can be done with a normal Container,Painter or ClipPath I'd still appreciate it.
Does not have to a ...
0
votes
1
answer
99
views
How to Ensure Full Gradient Coverage in a Rounded StrokeCap Arc in Flutter?
I'm working on a Flutter project where I'm drawing a half-circle gauge with a gradient that transitions from red to yellow to green, using a SweepGradient. The arc looks great overall, but I've ...
0
votes
1
answer
115
views
Custom Shape in Flutter in BottomSheet
I am working on a Flutter project and need help creating a custom shape for a BottomSheet. I have tried multiple approaches with CustomPainter and Clipper, but I haven't been able to achieve the exact ...
1
vote
0
answers
56
views
How to serialize a Dart:ui Path?
I am displaying pathes using CustomPainter that come from converted SVGs (and later from user paint)
Because these pathes are to be editable by the users, CustomPainter seems like a good candidate.
...
0
votes
1
answer
22
views
Flutter: customepaint and gesture out of sync when offscreen
I am developing a node editor sort of app, in which you can add nodes and connect them with a noodle connection (like in blender and Unreal engine), I am facing a problem when a node is dragged off ...
0
votes
1
answer
149
views
Add inner shadow with CustomPaint in Flutter
I have a fill path that creates a simple triangle: M49.5 0L92.3683 94.5L6.63174 94.5L49.5 0Z.
The triangle is being drawn correctly by using CustomPainter and canvas.drawPath().
Now I need to add an ...
0
votes
0
answers
317
views
Flutter draw line with custom pattern in Map
Is it possible to draw a line in Flutter with a complete custom pattern that repeats itself along the line? For example, I want to have this pattern:
So if I draw a straight line, it should like like ...
1
vote
1
answer
325
views
Flutter atan2 Angle Calculation for Rotating Line - 90 Degree Offset Issue
I'm building a Flutter app that allows users to rotate a line within a circle using a GestureDetector. The angle of the line is calculated based on the user's touch position. However, I'm encountering ...
0
votes
1
answer
131
views
Flutter: Are there any ways to speed up `canvas.drawPath` for a complex path?
This is the raster performance that I am getting from drawing a path with 200k lines:
https://i.sstatic.net/65uYK9aB.png
I am trying to create a custom graph using using CustomPainter, and find it a ...
0
votes
0
answers
65
views
How to draw an elipse in Flutter that takes as origin point the any corner of a rectable which is draw in
I have the fallowing code to draw ellipses:
enum OriginType { bottomLeft, bottomRight, topLeft, topRight, center }
class Background extends CustomPainter {
final double screenWidth;
final double ...
0
votes
1
answer
654
views
Flutter Custom Painter not Repainting
I am trying to get familiar with CustomPainters in Flutter, and tried to use a custom painter to draw a barrier with a cutout around a specific widget over the screen, to behave like a tutorial.
I ...
0
votes
0
answers
41
views
How to draw curve dashed line with point icons and titles in flutter?
In my flutter app i have to draw curve line with image or icon and text like bellow image.
So how i can create UI in flutter as image?
This is my code as below.
class CurveLineMyPainter extends ...
0
votes
2
answers
220
views
Flutter CustomPaint and CustomPainter creating widget of incorrect size
I have a program that creates a Pie-Chart using CustomPainter and CustomPaint that uses a SizedBox as the Canvas and is the Widget returned. However, the width of the SizedBox is being set to the ...
4
votes
2
answers
639
views
flutter custom paint road path
i have this code in flutter , iam using a custom paint to draw a "road like" and the path is done but when i draw circles inside it this happens :
and here is what i want :
and here is my ...
0
votes
1
answer
120
views
How to design the below appbar shape in CustomPainter in Flutter?
I am struggling with designing the below appbar design of the app in flutter i have checked various online resources,documentation,official flutter website but too much confused how to design the ...
0
votes
0
answers
99
views
How to Display Marker on an Network Image in given co-ordinates (x,y) in Flutter?
I'm making a mobile app using Flutter where I display an image from a website (URL). This image serves as a base map. On top of this image, I want to add a marker at specific locations (x, y) that can ...
0
votes
1
answer
383
views
How to create a waveform using custom painter - Flutter
In the below code i need to show the wave form when the user speaks, but i'm not sure about the code, it does't gets me positive
Reference image Expected Output
Also it needs to be varies based on the ...
1
vote
0
answers
122
views
Flutter custom design for a circular progress bar
I'm working on a flutter project and was requested to replicate this progress bar:
I went on to try CustomPainter and it got me to a point where it looks somewhat similar, just flatter without the ...
0
votes
0
answers
120
views
Flutter CustomPaint and animationController
i want to animate the charging and discharging of the capacitor ,there is an equation for charging and another equation for discharging but i want when press button, start the new painting from the ...
0
votes
1
answer
409
views
How can I implement a custom Flutter slider that gradually increases it's track thickness?
Context
I'm working on a custom slider widget in Flutter where I need the slider track to change its thickness slightly in an increasing way. I have not found any built-in properties in the Slider ...
1
vote
0
answers
51
views
Flutter-Ontap location is not in the path of image generated by CustomPainter
I am trying to get the properties of CustomPainter elements when tapped. However, the location generated by onTapUp is not within the path created by CustomPainter Path.
import 'package:flutter/...
-1
votes
1
answer
479
views
How to make custom arrow shape in flutter?
In my flutter app I have to create custom shaped arrows like bellow images,
And
So how I can create arrow like shown in this image?
Thank you...
1
vote
1
answer
54
views
When I hide and open the shape I drew with CustomPaint, it draws a line to the left of the screen. How can I prevent this?
I work with Offsets and Coordinates. I combine them using dots and have them draw a shape, when I hide this drawn shape and open it again, a line appears on my shape from the top left of the screen. ...
1
vote
2
answers
864
views
Create custom shape in flutter
I'm working on a Flutter project and I need to create a custom shape that looks like the one shown below:
I've attempted to use fluttershapemaker, but I couldn't quite achieve the exact shape I need.
...
0
votes
3
answers
755
views
Flutter paint arrow where the tip is rounded
I want to a CustomPainter that paints a triangle where the top edge is a bit rouned, like this:
I was able to paint a triangle with this:
class CustomStyleArrow extends CustomPainter {
@override
...
-1
votes
2
answers
423
views
How to draw a tooltip rect when touching one of the custompainter's shapes?
I have this simple chart made from custompainter, i also used a touchable lib to detect touches, but I dont know how to have it repaint or draw a rect when the user touches it.
Tried Methods:
draw ...
0
votes
1
answer
107
views
why are my brush strokes not showing up on the canvas
Im trying to design a simple drawing app in flutter and I'm having trouble trying to implement the actual brush strokes and how they look. Here is my code:
import 'package:flutter/material.dart';
...
0
votes
2
answers
116
views
Flutter CustomPainter Path bugs on IOS when having negative x value
I have a flutter bottom nav bar that works just fine on Android. but, when testing the same code on IOS, only when the first item is selected, the shadow of the navbar shifts to the left
Abnormal ...
0
votes
0
answers
117
views
How to capture a whole painting when its scrolled out in flutter custom paint
This is the code - I implemented a custom paint widget to draw a drawing, but when I scroll the things up or down, the painting which is go outside of the screen is not captured.
I work for this thing ...
0
votes
0
answers
32
views
Flutter paintImage randomly doesn't pain elements
I'm using a bit of code to display locations on a map using Flutter paintImage. Basically, I have a png of a map given to me by my backend, as well as a list of Offset where I want to place a pin ...
0
votes
0
answers
208
views
How to make custom paint lines edges in flutter
This is first image which i want to create
This is the second image which i achieved using that code
**I have to create an animation like line moving from left to right in zigzag motion with round ...
0
votes
1
answer
800
views
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, ...
3
votes
1
answer
650
views
Flutter - Text foreground is not showing up on iOS
I'm trying to create a text with a border. I've written this code
LayoutBuilder(
builder: (_, constraints) => Container(
width: constraints.maxHeight,
decoration: ...
2
votes
1
answer
114
views
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 ...
1
vote
2
answers
170
views
Flutter programing svg design
I designed a simple svg into this website and i'll to try programing that in flutter
I have implemented the code using this approach:
class AppbarBackgroundPainter extends CustomPainter {
final ...
0
votes
2
answers
777
views
how to draw the lines outside the axis in Flutter CustomPaint
I have a Container with a CustomPaint as the parent. In the CustomPaint I just draw a line on the half surrounding of the Container. The line is drawn with half of its width inside the Container and ...
0
votes
0
answers
229
views
How to show Image sized to Polygon generated by Custom Painter
Im using MLKit and custom painter to dynamically draw on screen when it detects something, however I would like to be able to show an image within that polygon resized to fit within the shape.
It ...
0
votes
1
answer
95
views
how can I Create custom App drawer flutter
How can I create custom app drawer like this one
I tried to use custom shape border with container but I cannot get the same shape
1
vote
1
answer
254
views
Flutter CustomPainter MultiColor tween animation
how can I create a CustomPainter that animates between multiple colors depending on a value?
The code below only works on one Tween value, create a smooth transition from blue to orange if the value ...
-2
votes
1
answer
2k
views
Wave Background Flutter Assistance
I have been struggling with this problem for the past 3ish days. Basically, I want the homepage of my app to have a wavelike pattern at the bottom of the screen. It is similar to this:
However, I ...
1
vote
1
answer
234
views
Centering Text in an Arc - Flutter
I am trying to center the Text within an arc in a flutter app. There are two elements in this.
First the arcs with colors are painted on the canvas and the Text is stacked over it.
The distance of ...