26 questions
1
vote
0
answers
48
views
Flutter: getNextFrame works in app but not in tests (issue compiling custom markers for Google Maps SDK)
I'm building my first Flutter app and I wanted to have some custom markers for the Google Maps SDK (as the default markers aren't great).
I wanted these custom markers to be generated programmatically ...
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
1k
views
How do I get my app to request storage permission and access my device's storage? Flutter
I'm making an instagram clone on flutter and i'm trying to access the device's storage so the user can select images to post but the permission in the app settings is greyed out. I'm following a ...
0
votes
1
answer
870
views
How do i blur the bottom navigation bar in flutter?
for hours I've been trying to blur my bottom navigation bar using the BackdropFilter and ImageFilter.blur but to no avail.
in my code, the bottom navigation bar is wrapped in a cliprrect widget and ...
0
votes
1
answer
123
views
Why I can not import dart:ui library? why could not import the Image class from dart ui
end of the code below which _generateMarkeresFromWidget called func. Inside of function ui.Image section doesn't see dart:ui library.
Undefined class 'Image'.
Try changing the name to the name of an ...
0
votes
1
answer
552
views
"Dart library 'dart:ui' is not available on this platform" Error while running an Flutter project
While running the Flutter project, it shows that the Dart library "'dart:ui' is not available on this platform." exists in the Many files. Many times I checked the reinstalling of the ...
0
votes
0
answers
503
views
Convert Image to Uint8List in Flutter without using Dart:ui
I need to convert Image to Uint8List in Flutter without using Dart:ui because this lib crashes while app is in the background,
this code works for dart:ui and I don't want that because my app crashes ...
1
vote
1
answer
538
views
Flutter not able to run
ERROR:D8: Cannot fit requested classes in a single dex file (# methods: 96089 > 65536)
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
The number of method ...
0
votes
1
answer
198
views
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 ...
2
votes
1
answer
2k
views
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.
1
vote
1
answer
707
views
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 ...
0
votes
3
answers
504
views
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....
0
votes
1
answer
279
views
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?...
1
vote
1
answer
499
views
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 ...
1
vote
3
answers
2k
views
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 ...
0
votes
1
answer
290
views
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 ...
2
votes
1
answer
554
views
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 ...
0
votes
0
answers
512
views
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 ...
0
votes
3
answers
2k
views
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 ...
0
votes
3
answers
351
views
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 ...
0
votes
0
answers
895
views
Flutter: draw over image with CustomPainter with DrawnLines
A part of an application I am working on involves editing photos. I am attempting to include an option to draw on an image. I can not find any examples of how to do this on Github or with the ...
0
votes
0
answers
39
views
Extension method on a class without a constructor in dart? [duplicate]
I've written extension methods on lots of dart stuff, but when I tried to do it FontWeight from dart:ui it isn't recognized as legit.
extension FontWeightExtension on FontWeight {
static const ...
0
votes
1
answer
763
views
Fitting Image inside a circle using canvas flutter
final ui.PictureRecorder pictureRecorder = ui.PictureRecorder();
final Canvas canvas = Canvas(pictureRecorder);
final Paint paint = Paint()..color;
final double radius = size / 2;
final Path clipPath =...
1
vote
1
answer
218
views
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....
5
votes
0
answers
737
views
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 ...
1
vote
1
answer
1k
views
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 ...