Questions tagged [dart-ui]
18 questions
5
votes
0 answers
Flutter: redraw Custompaint lines after changing scale
I am creating a note-taking app using Flutter and I use a CustomPainter for the drawing part. For better performance, the CustomPaint gets converted into an image after some Lines. Now the problem with images is when zooming in, the lines (which are…

Yusuf-Uluc
- 887
- 4
- 15
2
votes
1 answer
FLUTTER UI Config widget row with 2 dropdown
I have problem with UI in flutter. Anyone have experienced in widget please help me.
Firstly, here's the target from figma :
both date and time is using dropdown.
This is what it become after my code :
This is my code :
Container(
alignment:…

Dimas Satrya
- 97
- 8
1
vote
1 answer
Flutter - platformViewRegistry creating multiple views and will not display correctly
To process payments in our Flutter web app we are using a form hosted in an IFrame element so the client's browser can connect directly with the payment gateway.
I want to vary the header display in the HtmlElementView according to a condition on…

rhoffen
- 11
- 4
1
vote
1 answer
can`t debug Flutter project in VSCode (: Error: Not found: 'dart:ui')
I'm trying to learn Flutter and I have already set up the environment I'm using Andriod studio emulator and VSCode to run the Flutter file, and I'm using the default flutter project and it runs fine but when I run it with debug it doesn't work, and…

VODEX
- 11
- 4
1
vote
1 answer
ui.TextLeadingDistribution not found when running Flutter app on chrome or macos
When trying to run my app on chrome or macos after using dart migrate, I get this errors in the console:
Downloading Web SDK... 2,674ms
Launching lib/web/main.dev.dart on Chrome in debug mode...
Waiting for…

Gpack
- 1,878
- 3
- 18
- 45
1
vote
1 answer
Calculate distance between the area surrounded by a Path and a specific point in Flutter
According to the documentation for Path:
Closed sub-paths enclose a (possibly discontiguous) region of the plane based on the current fillType.
As far as I understand this implies that when a Path object is closed it surrounds a two dimensional…

Christian
- 25,249
- 40
- 134
- 225
0
votes
1 answer
Flutter custom stepper
Need help with creating a stepper that increase fractionally like each main step have 3 question and at each question stepper increase by 0.30. after 3rd question one main step is completed.
Please see attached image for clarity.see image

Jaldeep Joshi
- 1
- 1
0
votes
1 answer
How to add noise filter/effect on Image in flutter?
I want to create a mesh gradient with blur and noise effect. I already added blur effect using ImageFilter but don't know how to add grainy noise on top of it.

s4nk37
- 95
- 7
0
votes
3 answers
Flutter UI Create menu with function after click icon more
Halo,
First, I wanna show you my current UI :
And here's the code for red circle function :
InkWell(
onTap: null,
child: Icon(Icons.more_horiz,
size: 18,
color: Color.fromRGBO(0, 0, 0, 0.25),
),
),
What action I needed is to show…

Dimas Satrya
- 97
- 8
0
votes
1 answer
FLUTTER UI Selection box (with Container and SetState) selected but nothing happen
Halo,
I have problem with my Selected Container,
it changed on main page when selected, but didn't change when selected in bottomsheet.
here's the video link :
https://youtube.com/shorts/hzPNNQB6Gws?feature=share
here is the screenshoot :
This is…

Dimas Satrya
- 97
- 8
0
votes
2 answers
Drawing curved corner borders in Flutter with dart:ui Canvas
I am using the https://pub.dev/packages/ncnn_yolox_flutter package for object detection in my Flutter app. I want the border outline of detections to look similar to the image below; curved corners only. (Different opacity not necessary, although…

greenzebra
- 412
- 1
- 5
- 18
0
votes
1 answer
How can I draw low - medium - high chart in flutter
I want to draw a chart of BMI levels on my flutter app. Something similar to this image
Is there some package I can use to help me achieve this or do you have any suggestions on how can I draw something similar to it.
Thanks in advance

taha khamis
- 401
- 4
- 22
0
votes
0 answers
How to set a pop up message to appear in a page when Navigating from a specific route in flutter
I am wondering If there is a way to set a pop up message (Alert Dialogs) to appear on the screen when coming from a specific page.
Lets say that I have 3 screens. When I navigate from screen 1 to screen 2, no pop message will appear, however if I…

taha khamis
- 401
- 4
- 22
0
votes
3 answers
Place an icon on the buttom right of a Container
I have a Widget to creat a circular container. I want to place an icon on the buttom right, so I tried to use Positioned to place it where I want but its not moving. Its fixed on the center on the container.
Widget buildImage() {
return…

taha khamis
- 401
- 4
- 22
0
votes
3 answers
How to disable a button in flutter untill all Text feilds are filled
I have a registration form with multiple text feilds and a Radio button and a birthdate picker. I want to disable the submit button untill the user key in all the required feilds.
I managed to do something but it only validates one text feild.
…

taha khamis
- 401
- 4
- 22