95,872 questions
0
votes
0
answers
24
views
The button doesn't press, the modal doesn't open, and the function doesn't work
Title: Flutter menu button internal buttons are not clickable
Content:
I am creating a small menu for deleting/editing comments or posts in Flutter.
When I press an IconButton, a menu appears using ...
0
votes
1
answer
16
views
failed to remove .dart_tool on flutter clean command
I am getting this error on flutter clean cammand.
Failed to remove D:\Projects\FlutterProject\.dart_tool. A program may still be using a file in the directory or the directory itself. To find and ...
0
votes
1
answer
30
views
How do I manage state in Flutter without boilerplate code?
I’m building a Flutter app and looking for a clean way to manage state without a lot of boilerplate code.
I’ve tried using setState, but the widget rebuilds become messy as the project grows.
I also ...
0
votes
0
answers
34
views
How to remove the border or padding from CustomDropdown in Flutter using Dart?
enter image description here
I'm using the animated_custom_dropdown library version 3.1.1.
I've run into this problem:
By default, CustomDropdown comes with a transparent padding or border on the left ...
Tooling
1
vote
1
replies
40
views
What is the current recommended way to run integration tests in Flutter (since integration_test is discontinued)?
I’m setting up integration tests in a Flutter project and noticed an inconsistency between the official documentation and the current state of the packages.
The official Flutter documentation still ...
-2
votes
0
answers
52
views
SignalR not working in flutter for my colleague - Hub connection is getting disconnected [closed]
Hub connection is getting disconnected , its working in local , but when deployed to cloud its not working , but there is no issue from server end because the same thing i working fine in Web ...
Best practices
0
votes
0
replies
39
views
How to force Flutter ShowCaseView to scroll a highlighted widget to the top instead of the center?
I am using the showcaseview package in Flutter to highlight sections of a long scrollable page.
The problem is:
When a widget is highlighted, ShowCaseView automatically scrolls it only to the middle ...
2
votes
0
answers
54
views
flutter version 3.38.2 slow api calls
A dio.get() call that takes only 150 ms with curl blocks for 6–8 seconds on the client side.
The pause happens before Dio prints the first REQUEST log line, so the delay is not caused by DNS, TLS, or ...
Best practices
1
vote
2
replies
63
views
How to avoid passing groupValue and onChanged to both RadioGroup and child widget in Flutter?
I’m using RadioGroup and a custom radio button widget.
Right now, I’m forced to pass groupValue and onChanged twice — once to RadioGroup and again to my _buildRadioButton widget.
RadioGroup<bool>...
0
votes
0
answers
50
views
Force InteractiveViewer to show full width (e.g. BoxFit.fitwidth) of image regardless of screen size
TLDR: how to fitWidth on an image inside an InteractiveViewer
I am using an InteractiveViewer in my flutter app to display a photo of the page of a book.
Previously, I was just using a ...
0
votes
0
answers
55
views
How to expand SliverPersistentHeader when reaching top of page if floatHeaderSlivers = true?
When scrolling down the page, the top part of the SliverPersistentHeader widget (topPanel) is hiding, and when scrolling up, it is shown (NestedScrollView.floatHeaderSlivers = true). The topPanel ...
Tooling
0
votes
2
replies
45
views
Minimise and Max Size the Container widget and Text
[making smaller and bigger the containerI tried to find this but didn't get any solution that how to min size or max size the container widget like this only when pressed on the button using a button ...
0
votes
0
answers
34
views
Firebase background handler on iOS runs inconsistently (works on Android)
I’m building an end-to-end encrypted chat app using Flutter.
When a Firebase push notification arrives, my background message handler (_firebaseMessagingBackgroundHandler) connects to my WebSocket ...
0
votes
0
answers
51
views
Text inside Row doesn’t truncate correctly when resizing (IntrinsicWidth + Flexible causes inconsistent behavior)
I have two pill-style containers inside a Row, and each container shows text. I want each container to use only as much width as its text needs, and when the window becomes tight, both sides should ...
Advice
0
votes
3
replies
89
views
How to convert a color string (hex or named color) to Color in Flutter?
I have a string in Flutter that represents a color. The string can be:
A hexadecimal color code like #FFFFFF or #000000
A named color like "white", "black", "red"
I ...
0
votes
0
answers
57
views
How to make my Flutter (SDK 3.10) app and dependencies compatible with a "16 KB page size" limit (can't upgrade SDK)? [closed]
Goal
I need a clear, step-by-step process I can follow to make the app + dependencies compatible with that 16 KB page-size constraint without upgrading Flutter SDK. I am looking for concrete actions I ...
0
votes
2
answers
96
views
Close a Card or some other widget inside a Dialog? It closes the Dialog itself
Perhaps it is a flaw of my design but as it is, I am showing a flutter_map inside a Dialog, using showDialog(...){...}. On that map I have several markers which when clicked a Card with some text pops ...
1
vote
1
answer
54
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 ...
0
votes
0
answers
75
views
Dart SecurityContext not accepting programmatically generated RSA private key for Android TV Remote Protocol
I'm building a Flutter app that uses Android TV Remote Protocol v2. The app requires client certificates for authentication. When I use a manually created certificate (placed in assets), everything ...
0
votes
0
answers
55
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
1
answer
89
views
Flutter Google Maps: setMapStyle deprecated, how to style the map in newer versions?
I'm using the latest version of google_maps_flutter, and I noticed that this code is now showing a deprecation warning:
if (_mapStyle != null) {
mapController.setMapStyle(_mapStyle);
}
I used this ...
1
vote
2
answers
79
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
34
views
Flutter Intl Phone Field ignoring list from api
So im trying to populate custom values into flutter intl phone field
IntlPhoneField(
readOnly: config.isReadonly,
focusNode: focusNode,
initialCountryCode: '...
0
votes
1
answer
132
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
44
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
2
answers
89
views
showDialog function in flutter not doing anything
I'm making a simple 'To Do List' app In Flutter, When I press the 'floatingActionButton' it's supposed to to show a pop-up where the user can input a new task, But nothing is displayed when the button ...
1
vote
0
answers
127
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 ...
1
vote
0
answers
38
views
How to handle payload message click
How to handle notification payload. My app is that when killing the app, you always have to log in again. When receiving notification -> click on notification -> route to logIn screen -> ...
0
votes
0
answers
51
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 ...
0
votes
1
answer
56
views
Why does dart format code with three tabs?
I've got the dart formatter running on my code, and for some reason it insists on the following formatting:
String get display => switch (type) {
ListType.star => 'Starred',
...
Advice
0
votes
2
replies
70
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
3
answers
81
views
Postgresql: server does not support ssl, but it was required
I was learning postgres with flutter, and my app kept crashing when I tried to connect to the database. The database is a postgres db running on a docker container.
Here is the Dockerfile
FROM ...
0
votes
0
answers
44
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 ...
1
vote
0
answers
113
views
Capture Image Only When Camera is at a Specific Distance from Object
I’m building a Flutter app where the user can take pictures of objects, but I want the capture button to be enabled only when the camera is at a specific distance from the object.
I am using the ...
0
votes
2
answers
65
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 ...
2
votes
0
answers
103
views
I recently upgraded from Riverpod 2.x to 3.0 and I'm getting a disposal error
Unhandled Exception: Cannot use the Ref of noteControllerProvider after it has been disposed. This typically happens if:
A provider rebuilt, but the previous "build" was still pending and ...
0
votes
0
answers
118
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 ...
3
votes
1
answer
167
views
How to re-edit an image after saving in pro_image_editor?
I'm using the Flutter package pro_image_editor: ^11.12.1 for image editing in my app.
The editor works fine for the first edit. However, I’m having trouble re-editing an image after it’s been saved ...
1
vote
1
answer
84
views
MissingPluginException(No implementation found for method OneSignal#initialize on channel OneSignal
What happened?
App does not start properly (MissingPluginException(No implementation found for method OneSignal#initialize on channel OneSignal)
because of OneSignal package issue which is ONLY ...
-1
votes
0
answers
131
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 ...
0
votes
1
answer
54
views
Flutter Navigator assertion error (!_debugLocked) when calling setState after deleted account login attempt
I am builing app on flutter with Firebase auth that blocks deleted accounts from loggin in. of course it should not let the deleted account sign in but it keeps showing me error that crashes app with ...
2
votes
3
answers
134
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
2
answers
98
views
Flutter fail to build when shared preferences added
I just added shared preferences to my flutter project as a storage for login and registering and etc.
when i want to build the app, it gives me this error:
* What went wrong:
Execution failed for task ...
0
votes
2
answers
94
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 ...
1
vote
1
answer
100
views
Flutter web google_sign_in widget twitching continuously on user interaction
I am currently encountering a problem where my google_sign_in button rendered from the Web is twitching as shown here:
GIF: GOOGLE SIGN IN WIDGET TWITCHING
I have followed the example given from the ...
2
votes
1
answer
44
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
52
views
Check return value / thrown error or exception and calls to print during unit tests in Dart
The following code is a simplification of the code that I have and may not disclose:
class Logger {
var _loggingStarted = false;
void startLogging() {
if (!_loggingStarted) {
...
0
votes
1
answer
79
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): ...
1
vote
1
answer
91
views
Images inside assets folder not loading after restarting the app
I have a Flutter project and I added some images inside:
assets/images/
I also added the folder in pubspec.yaml:
flutter:
assets:
- assets/images/
The images load correctly the first time when ...
3
votes
1
answer
56
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 ...