95,861 questions
1
vote
1
answer
25
views
SearchAnchor.openView() : change (inherited) width of SearchBar?
On my flutter_map I have an IconButton which it should cause a SearchBar to appear only when clicked. When search is done, the SearchBar can go into hiding again and only said icon be visible.
I have ...
-2
votes
0
answers
38
views
Can i give a value to a variable inside of an abstract class? [closed]
i know that we can not write code or return something inside a method in abstract class (well becuse its abstracted!)
what about variables inside of abstract class ? can i for example define a 'x' ...
0
votes
0
answers
20
views
How to pass c preprocessor flags when making final exe with dart's new native assets and build hooks interop feature?
How do you pass the flags to the final exe like -D_DEBUG, /SUBSYSTEM:WINDOWS, -DCMAKE and so on to the final exe thats built when using dart's newest build hooks, native assets interop method? ...
1
vote
2
answers
65
views
FutureBuilder doesn't build widget as expected
I've been trying to solve this problem for a couple of days now, but to no avail. I have a simple app with three tabs:
Deliveries Page: Has a DropdownMenuFormField (basically just a DropdownMenu with ...
0
votes
1
answer
79
views
Firebase initialization failed on physical iPhone (iOS 26.1) – channel-error & iOS 14 deployment target issues
I’m facing a persistent issue when running my Flutter iOS app on a physical iPhone and iOS simulator (iOS 26.1). I am using the latest Flutter and Dart versions and my project is integrated with ...
Best practices
0
votes
1
replies
41
views
How to integrate Stripe Payment Gateway with Card, MB Way, Apple Pay, and Google Pay in a Flutter app?
I need help understanding:
How to configure Stripe in Flutter for multiple payment methods.
How to enable MB Way in Stripe and trigger it from the Flutter app.
How to set up Apple Pay and Google ...
1
vote
0
answers
98
views
CMake Error at CMakeLists.txt (project) - could not find any instance of Visual Studio
if you're getting an issue like this:
$ flutter build windows
CMake Error at CMakeLists.txt:3 (project):
Generator
Visual Studio 16 2019
could not find any instance of Visual Studio.
Unable to ...
0
votes
0
answers
48
views
How do I handle lazy methods in const classes?
I've got an immutable class in Dart. There's an expensive method on the class which relies on that immutable data, and I'd like to calculate that the first time the method is called and store the ...
Advice
0
votes
2
replies
67
views
How do I create a grid layout where some rows span the whole grid in Flutter?
I'm trying to write a settings page, and the layout I want is a grid with interspersed titles, something like this:
That's easy enough to accomplish, except I want the first column to adjust to the ...
0
votes
0
answers
40
views
The getter isn't defined for appSchema
I'm making a mobile app using flutter. My collections and dto have all been defined and it runs perfectly when I'm building it using dart run build_runner build --delete-conflicting-outputs.
I know it ...
0
votes
2
answers
54
views
Size ReorderableListView to just fit the width of the expected items
In my project, I am using a vertical ReorderableListView with items that all have the same width. Despite the items having the same width and providing one item as a prototype item, the ...
0
votes
0
answers
99
views
Issues facing while using Go Router latest version?
Previously I have used go router for Flutter Web. That time my flutter version was 3.10.6 and the go router version of 6.4.0. In that time The project was configured in such a way so that in URL bar ...
0
votes
0
answers
58
views
.Flutter suddenly doesnt recognize Widget as a type
Flutter doesn't recognize Widget as type now. Material.dart is imported everywhere but still it still doesn't recognize it..It suddenly happened while i was working on the project.Now other projects ...
-1
votes
0
answers
129
views
Does the Dart language server support code completion for switch statements?
Does the Dart language server support code completion for switch statement?
I am asking about the Dart extension for VS Code.
In the switch statement, I want to get a suggestion (autocompletion) for ...
2
votes
3
answers
127
views
Getting user properties from Firestore in Flutter app
I am trying to get several details from the collection "users" (eg, name, surname, nickname) stored in Firestore with the function getUserData() to pass them to other classes through the ...
0
votes
1
answer
87
views
AdWidget is already in the Widget Tree
I've put in a github issue but just wanted to check with the community that this sounds right to everyone else.
Logically when creating and "ad" and an "adwidget" in flutter they ...
2
votes
1
answer
37
views
How to send streamed response to client using Timer.periodic in dart?
I am struggling to send streamed response to the connected client. The code below is the example HttpServer used to respond to the client, the client code is also mentioned using a custom class to ...
0
votes
1
answer
75
views
Flutter SharedPreferences & FlutterToast MissingPluginException
I'm facing an issue after building my Flutter app (especially in release mode).
The app crashes or throws the following errors related to SharedPreferences and FlutterToast plugins.
I/flutter (10569): ...
3
votes
1
answer
54
views
Access denied when downloading file written to OneDrive using Microsoft Graph API with Files.ReadWrite.All scope
I have a mobile app (Flutter) where I'm allowing the user to backup their data to their personal OneDrive, so if they lose their device they can restore data from their OneDrive. I'm using a delegated ...
-2
votes
1
answer
136
views
How to make a CustomClipper like this folder-shaped card? [closed]
I have this design (screenshot below).
It looks like a rounded rectangle with a small tab on the top — like a folder.
I need to create the same shape using CustomClipper so I can clip a container.
How ...
1
vote
1
answer
85
views
Fast way to select large files?
When I use a file_picker or image_picker on a 2 GB file, it takes about 25 seconds until the process after selecting a file is finished. That is quite a long time for users to wait.
As far as I know, ...
0
votes
0
answers
39
views
laggy keyboard animation while appearing
Problem is when clicking on textfield the keyboard appears laggily.
it does not appears in instant like it does on whatspp or any other application
no matter how big size of application is , it will ...
1
vote
0
answers
86
views
What is dartaotruntime and why does it query some endpoint?
I am reading dartaotruntime documentation and it doesn't mention connecting to network at all: https://dart.dev/tools/dartaotruntime
I wonder if someone knows why would the latest flutter's ...
0
votes
0
answers
57
views
My Flutter project using GetX no longer recognizes GetX reactive variables — the error: 'There isn't a setter named 'value' in class 'RxObjectMixin'
since last night I’ve been having the problem that my Flutter project can no longer be built because I’m getting compile errors in IntelliJ.
My code looks as follows
class GuestBookingDetailController ...
0
votes
0
answers
132
views
Parse string with comma to double on Linux
I want to show double numbers with "," as decimal separator and have to convert strings to double considering the same issue. I do this using the intl package.
Get Locale: String myLocale = ...