id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_79492449 | stackoverflow | MOBILE_DEVELOPMENT | UI Glitching & Flickering Issue on Some Devices in Flutter App | UI Glitching & Flickering Issue on Some Devices in Flutter App
Flutter UI Glitching and Flickering
I am facing a UI glitching/flickering issue in my Flutter application on some devices. The UI breaks, showing distorted elements, as seen in the attached image).
Details:
Flutter Version: 3.27.1
Dart Version: 3.6.... | https://stackoverflow.com/questions/79492449/ui-glitching-flickering-issue-on-some-devices-in-flutter-app | android, flutter, mobile, samsung-mobile | 1,741,353,845 |
se_79934796 | stackoverflow | MOBILE_DEVELOPMENT | What is best, React or Flutter? | What is best, React or Flutter?
What is best, keeping an app written in React or change the app to Flutter? | https://stackoverflow.com/questions/79934796/what-is-best-react-or-flutter | reactjs, flutter | 1,777,660,558 |
se_71843633 | stackoverflow | MOBILE_DEVELOPMENT | ERROR: Failed to create project. See firebase-debug.log for more info | ERROR: Failed to create project. See firebase-debug.log for more info
i Found 0 Firebase projects.
✔ Enter a project id for your new Firebase project (e.g. my-cool-project) · onoja
i New Firebase project onoja created succesfully.
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a ... | https://stackoverflow.com/questions/71843633/error-failed-to-create-project-see-firebase-debug-log-for-more-info | firebase, flutter, debugging, cloud, backend | 1,649,770,296 |
se_51895194 | stackoverflow | MOBILE_DEVELOPMENT | Correct way of storing API Keys in flutter following best practises | Correct way of storing API Keys in flutter following best practises
Which is the correct way(best practice) of adding secret API keys in flutter in case I want to push the code on github. I've made a simple app that consumes an API but I used the key in a crud way just to test whether the app is working. Usually from ... | https://stackoverflow.com/questions/51895194/correct-way-of-storing-api-keys-in-flutter-following-best-practises | dart, flutter | 1,534,507,932 |
se_58247103 | stackoverflow | MOBILE_DEVELOPMENT | How to set Timeout for MultiPart Request in Dart? | How to set Timeout for MultiPart Request in Dart?
Here is my MultiPartRequest code
var request =
http.MultipartRequest("POST", Uri.parse(EMPLOYEE_PUNCH_IN_URL));
request.fields['uid'] = userId;
request.fields['location'] = location;
request.fields['punchin_time'] = punchInTime;
... | https://stackoverflow.com/questions/58247103/how-to-set-timeout-for-multipart-request-in-dart | http, flutter, dart | 1,570,268,576 |
se_79934557 | stackoverflow | MOBILE_DEVELOPMENT | DatabaseException "out of memory" when opening SQLCipher 3 encrypted DB on versions > 2.2.1 | DatabaseException "out of memory" when opening SQLCipher 3 encrypted DB on versions > 2.2.1
I’m encountering a crash when opening an encrypted database using sqflite_sqlcipher on versions above 2.2.1. The same code works fine on 2.2.1, but fails consistently on newer versions.
Code Snippet:
Future<Databas... | https://stackoverflow.com/questions/79934557/databaseexception-out-of-memory-when-opening-sqlcipher-3-encrypted-db-on-versi | ios, flutter, sqlite, sqlcipher | 1,777,623,533 |
se_62275330 | stackoverflow | MOBILE_DEVELOPMENT | How to resolve version solving failed in flutter | How to resolve version solving failed in flutter
Because flutter_bloc: 0.21.0 depends on provider: ^3.0.0 and no versions of flutter_bloc match: >0.21.0 <0.22.0, flutter_bloc: ^0.21.0 requires provider: ^3.0.0.
So, because it tells_me that it depends on both provider: ^4.1.2 and flutter_bloc: ^0.21.0, version solving ... | https://stackoverflow.com/questions/62275330/how-to-resolve-version-solving-failed-in-flutter | flutter | 1,591,678,828 |
se_79931211 | stackoverflow | MOBILE_DEVELOPMENT | Subscription Status Mismatch Between Login Account and Store Account (Firebase + RevenueCat) | Subscription Status Mismatch Between Login Account and Store Account (Firebase + RevenueCat)
I’m currently building a subscription feature using Firebase Authentication for login and RevenueCat for handling in-app purchases. I’ve run into an issue when users log in with a different account than the one used on the sto... | https://stackoverflow.com/questions/79931211/subscription-status-mismatch-between-login-account-and-store-account-firebase | android, flutter, firebase, revenuecat | 1,777,022,585 |
se_64630667 | stackoverflow | MOBILE_DEVELOPMENT | How to connecting and communicating with Bluetooth in Flutter | How to connecting and communicating with Bluetooth in Flutter
I've been searching Bluetooth BLE usage with Flutter but it seems there are only a few plugins and they've some issues. I don't want to use any plugin because I only need to read a QR code, Get MACaddress and let Flutter connect to a hidden Bluetooth device... | https://stackoverflow.com/questions/64630667/how-to-connecting-and-communicating-with-bluetooth-in-flutter | flutter, bluetooth, core-bluetooth | 1,604,225,251 |
se_65630743 | stackoverflow | MOBILE_DEVELOPMENT | How can I solve the Flutter web API CORS error only with Dart code? | How can I solve the Flutter web API CORS error only with Dart code?
It seems like the CORS error is a well-known issue in the web field. But I tried Flutter web for the first time ever, and I faced a critical error.
The code below worked well in the app version when it was running on an iOS device, but when I tested t... | https://stackoverflow.com/questions/65630743/how-can-i-solve-the-flutter-web-api-cors-error-only-with-dart-code | flutter, dart, http, request, cors | 1,610,115,657 |
se_70927466 | stackoverflow | MOBILE_DEVELOPMENT | How to properly put multiple VideoPlayer into a PageView in flutter? | How to properly put multiple VideoPlayer into a PageView in flutter?
I'm trying to create an app where I can switch videos with swipes (similar to TikTok). My current implementation looks like this:
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:video_player/video_play... | https://stackoverflow.com/questions/70927466/how-to-properly-put-multiple-videoplayer-into-a-pageview-in-flutter | flutter, flutter-video-player | 1,643,638,536 |
se_60727326 | stackoverflow | MOBILE_DEVELOPMENT | Sdkmanager "Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli" on Windows | Sdkmanager "Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli" on Windows
I am trying to install Flutter without Android Studio and here is what I did:
Installed Java 8
Installed and Unzipped Flutter SDK to C:\src.
Installed and Unzipped Android Command-line tools (s... | https://stackoverflow.com/questions/60727326/sdkmanager-error-could-not-find-or-load-main-class-com-android-sdklib-tool-sdk | android, android-studio, flutter, sdk, android-sdk-manager | 1,584,466,023 |
se_60727326 | stackoverflow | MOBILE_DEVELOPMENT | Sdkmanager "Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli" on Windows | Sdkmanager "Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli" on Windows
I am trying to install Flutter without Android Studio and here is what I did:
Installed Java 8
Installed and Unzipped Flutter SDK to C:\src.
Installed and Unzipped Android Command-line tools (s... | https://stackoverflow.com/questions/60727326/sdkmanager-error-could-not-find-or-load-main-class-com-android-sdklib-tool-sdk | android, android-studio, flutter, sdk, android-sdk-manager | 1,584,466,023 |
se_73835978 | stackoverflow | MOBILE_DEVELOPMENT | Did not find frame | Did not find frame
I get the following error when using InAppWebview and switching between pages,
works in one emulator, not in another
E/FrameEvents( 5237): updateAcquireFence: Did not find frame. | https://stackoverflow.com/questions/73835978/did-not-find-frame | android, flutter, dart, visual-studio-code, android-webview | 1,664,010,342 |
se_79897887 | stackoverflow | MOBILE_DEVELOPMENT | YouTube video works in browser but fails inside Flutter app with error 152-4 | YouTube video works in browser but fails inside Flutter app with error 152-4
I am developing a Flutter app (Android 12 and Android 14 tested) and embedding YouTube videos using youtube_player_iframe (or youtube_player_flutter).
The videos:
Work perfectly in Chrome on the phone
Are set to "Unlisted"
Embedding is allow... | https://stackoverflow.com/questions/79897887/youtube-video-works-in-browser-but-fails-inside-flutter-app-with-error-152-4 | android, flutter, youtube, youtube-api | 1,772,202,779 |
se_79932985 | stackoverflow | MOBILE_DEVELOPMENT | Web-based Avatar rendering on flutter App | Web-based Avatar rendering on flutter App
I am working on integrating a web-based avatar preview into a Flutter application as part of a text-to-sign pipeline. The avatar I am attempting to render is the CoffeeScript WebGL ARP Signing Avatar with Animgen via JASigning (vhg.2023).
During implementation, I initially enc... | https://stackoverflow.com/questions/79932985/web-based-avatar-rendering-on-flutter-app | flutter, html-rendering, flutterwebviewplugin, avatarjs | 1,777,369,964 |
se_79908436 | stackoverflow | MOBILE_DEVELOPMENT | Flutter SSL Handshake Failure on Android 13 and below | Flutter SSL Handshake Failure on Android 13 and below
We are experiencing an SSL handshake issue in a Flutter-based Android application when connecting to a backend API hosted on SAP Cloud Platform Integration (SAP CPI).
Recently, the API certificate chain was upgraded to DigiCert TLS RSA4096 Root G5. After this chang... | https://stackoverflow.com/questions/79908436/flutter-ssl-handshake-failure-on-android-13-and-below | android, flutter, dart, ssl, self-signed-certificate | 1,773,658,311 |
se_79777303 | stackoverflow | MOBILE_DEVELOPMENT | How do I deal with the issue of memory constantly running out, triggering lowmemorykiller and then forceclose? | How do I deal with the issue of memory constantly running out, triggering lowmemorykiller and then forceclose?
I am currently developing a podcast-like application built with Flutter. I am using the just_audio library to play the audio.
When the app is opened, it works fine at first. (Plays one audio file, plays for 1... | https://stackoverflow.com/questions/79777303/how-do-i-deal-with-the-issue-of-memory-constantly-running-out-triggering-lowmem | flutter, audio, just-audio, flutter-audioplayers, cachednetworkimage | 1,759,060,595 |
se_58417431 | stackoverflow | MOBILE_DEVELOPMENT | Flutter run returns: A problem occurred evaluating project ':app'." ">ASCII" | Flutter run returns: A problem occurred evaluating project ':app'." ">ASCII"
I'm trying to follow the "Add firebase to flutter" tutorial (https://firebase.google.com/docs/flutter/setup) . I've done this with many prior version.
Now on Flutter 1.9 I'm getting "A problem occurred evaluating pr... | https://stackoverflow.com/questions/58417431/flutter-run-returns-a-problem-occurred-evaluating-project-app-ascii | firebase, gradle, flutter, dart | 1,571,241,706 |
se_13264230 | stackoverflow | MOBILE_DEVELOPMENT | What is the difference between named and positional parameters in Dart? | What is the difference between named and positional parameters in Dart?
Dart supports both named optional parameters and positional optional parameters. What are the differences between the two?
Also, how can you tell if an optional parameter was actually specified? | https://stackoverflow.com/questions/13264230/what-is-the-difference-between-named-and-positional-parameters-in-dart | flutter, dart, parameters, named-parameters, positional-parameter | 1,352,269,446 |
se_56367108 | stackoverflow | MOBILE_DEVELOPMENT | ADB exited with exit code 1 | ADB exited with exit code 1
I'm getting the following error when running my flutter project on Android Emulator. It works fine on iOS Simulator and the project is also fine on my other Mac (runs on both Android and iOS Simulator)
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install /... | https://stackoverflow.com/questions/56367108/adb-exited-with-exit-code-1 | android, flutter | 1,559,157,207 |
se_79932315 | stackoverflow | MOBILE_DEVELOPMENT | Flutter TextField keyboard immediately dismisses on Android 16 Beta / OxygenOS 16 | Flutter TextField keyboard immediately dismisses on Android 16 Beta / OxygenOS 16
I am experiencing a critical issue where the soft keyboard immediately dismisses (within ~200ms) after a user taps a TextField. This prevents any text input and effectively blocks the user flow.
The Bug:
User taps the TextField.
The ke... | https://stackoverflow.com/questions/79932315/flutter-textfield-keyboard-immediately-dismisses-on-android-16-beta-oxygenos-1 | android, flutter, dart, android-16 | 1,777,265,175 |
se_53992195 | stackoverflow | MOBILE_DEVELOPMENT | Does flutter support animated svg? | Does flutter support animated svg?
Im trying to create a preloader for my app. But I want it to be high quality. Not GIF. So animated SVG is what I want to use. Is there a way to put animated SVG in flutter? | https://stackoverflow.com/questions/53992195/does-flutter-support-animated-svg | animation, svg, flutter | 1,546,300,452 |
se_58371710 | stackoverflow | MOBILE_DEVELOPMENT | Asset images File path in flutter? | Asset images File path in flutter?
I wanted to ship an app with pre-populated Sqflite database(which can be modified by user).
I have added like 100 images as assets and need to read them as File Images instead of asset images (so it will easy to read & load the images in different screens, without copying the images... | https://stackoverflow.com/questions/58371710/asset-images-file-path-in-flutter | flutter, sqflite, flutter-image | 1,571,037,168 |
se_78900405 | stackoverflow | MOBILE_DEVELOPMENT | Unexplained changes in flutter source code, preventing the application from running | Unexplained changes in flutter source code, preventing the application from running
Note: while writing this question, I found the solution to it, but this has given rise to more questions, so for context don't skip the original question.
Original question
I am getting this error when trying to run my Flutter applicat... | https://stackoverflow.com/questions/78900405/unexplained-changes-in-flutter-source-code-preventing-the-application-from-runn | flutter, dart | 1,724,313,647 |
se_66607195 | stackoverflow | MOBILE_DEVELOPMENT | Flutter, error with new google mobile ads sdk | Flutter, error with new google mobile ads sdk
I'm having issues just using google_mobile_ads, when I try the method in the flutter tutorial I don't know how to make it work in my main
main
import 'package:android_alarm_manager/android_alarm_manager.dart';
import 'package:behend/admob_service.dart';
import 'packag... | https://stackoverflow.com/questions/66607195/flutter-error-with-new-google-mobile-ads-sdk | flutter, android-studio, dart, flutter-packages, flutter2.0 | 1,615,583,116 |
se_71020698 | stackoverflow | MOBILE_DEVELOPMENT | Request http in flutter web | Request http in flutter web
I want to post data to the server with dio library but when I send data, I get XMLHttpRequest error. The server programmer checked twice his codes and made sure to enable CORS in the server. I think this error occurs because the server is not HTTPS and the browser blocks the request. I use ... | https://stackoverflow.com/questions/71020698/request-http-in-flutter-web | flutter, flutter-web | 1,644,246,064 |
se_57171191 | stackoverflow | MOBILE_DEVELOPMENT | Alternative to admob for flutter | Alternative to admob for flutter
I am a new flutter developer.
I have an app on the play store using flutter.
When setting up admob inside the app, I placed the code inside the main.dart file.
Inside the app a user will navigate through multiple screen (roughly 10+ screens) hourly.
I didn't realize the way the adm... | https://stackoverflow.com/questions/57171191/alternative-to-admob-for-flutter | flutter, admob | 1,563,911,186 |
se_56026568 | stackoverflow | MOBILE_DEVELOPMENT | How to achieve iOS like smooth page transition animation in Flutter? | How to achieve iOS like smooth page transition animation in Flutter?
I was checking out the app The History of Everything because I am learning about coding Flutter apps. But then I noticed the page transition animation in the app is way smoother than my own application which is also made with Flutter. You can see the... | https://stackoverflow.com/questions/56026568/how-to-achieve-ios-like-smooth-page-transition-animation-in-flutter | android, ios, dart, flutter | 1,557,245,241 |
se_69150762 | stackoverflow | MOBILE_DEVELOPMENT | Customizing the AutoComplete widget in Flutter | Customizing the AutoComplete widget in Flutter
I am new to Flutter.
I need to have several Autocomplete fields in a single page, to receive user inputs (either afresh or a selection from the dropdown list attached to each Autocomplete field).
Such inputs from all the Autocomplete fields needs to be passed to variables... | https://stackoverflow.com/questions/69150762/customizing-the-autocomplete-widget-in-flutter | flutter, autocomplete | 1,631,444,191 |
se_60988633 | stackoverflow | MOBILE_DEVELOPMENT | How to change iPhone deployment target | How to change iPhone deployment target
I have updated flutter today also with Xcode and I'm getting an error when trying to run my app on IOS
warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported
deployment target versions is 8.0 to 13.4.99. (in target
'gR... | https://stackoverflow.com/questions/60988633/how-to-change-iphone-deployment-target | ios, iphone, flutter, dart, podfile | 1,585,820,682 |
se_78145303 | stackoverflow | MOBILE_DEVELOPMENT | Deferred page loading in Fluter Web with Router | Deferred page loading in Fluter Web with Router
I am working on optimizing the initial page load of my Flutter web app. One path I am investigating is to reduce the binary size of main.dart.js by splitting it into parts using deferred loading.
I am using go_router which as far as I know doesn't support lazy loading. I... | https://stackoverflow.com/questions/78145303/deferred-page-loading-in-fluter-web-with-router | flutter, flutter-routes | 1,710,228,602 |
se_62546899 | stackoverflow | MOBILE_DEVELOPMENT | Get the current project directory from flutter integration test | Get the current project directory from flutter integration test
Is there a way to get the current project directory in flutter integration test? This is a basic test setup as an example.
import 'dart:io';
import 'package:flutter_driver/driver_extension.dart';
import 'package:ivori/main.dart' as app;
import 'package:g... | https://stackoverflow.com/questions/62546899/get-the-current-project-directory-from-flutter-integration-test | flutter | 1,592,967,566 |
se_79926420 | stackoverflow | MOBILE_DEVELOPMENT | Flutter + Shorebird patch causes crash loop on iOS (App Store build) after relaunch, works fine on Android | Flutter + Shorebird patch causes crash loop on iOS (App Store build) after relaunch, works fine on Android
I’m facing an issue with Shorebird patching in my Flutter app where everything works fine on Android, but on iOS it results in a crash loop after the first relaunch.
Details
Flutter app using Shorebird for patch... | https://stackoverflow.com/questions/79926420/flutter-shorebird-patch-causes-crash-loop-on-ios-app-store-build-after-relau | ios, flutter, dart, shorebird | 1,776,319,473 |
se_65389302 | stackoverflow | MOBILE_DEVELOPMENT | How to block screenshots in flutter on only one page? | How to block screenshots in flutter on only one page?
I was wondering how to block screenshots in flutter on only one page. I read there is a way by blocking screenshots in a flutter app, with: getWindow().addFlags(LayoutParams.FLAG_SECURE); but the way I understood it was, that when I do this, screenshots are blocked... | https://stackoverflow.com/questions/65389302/how-to-block-screenshots-in-flutter-on-only-one-page | flutter, dart | 1,608,537,766 |
se_71753394 | stackoverflow | MOBILE_DEVELOPMENT | PDF File is not downloading when using Dio in Flutter | PDF File is not downloading when using Dio in Flutter
I created a Pdf viewer screen and I added a button which should download the PDF from the URL when it's pressed. I display the pdf from an URL, it is displayed correctly but the download function is not working. I tried different examples and implementations found ... | https://stackoverflow.com/questions/71753394/pdf-file-is-not-downloading-when-using-dio-in-flutter | android, flutter, dart, pdf, dio | 1,649,168,335 |
se_79931120 | stackoverflow | MOBILE_DEVELOPMENT | Architecture advice for React Native vs Flutter for a 3-tier SaaS with an existing React/MongoDB web dashboard | Architecture advice for React Native vs Flutter for a 3-tier SaaS with an existing React/MongoDB web dashboard
I am architecting a 3-tier mobile ecosystem for a SaaS access control project. The system includes,
Worker App: Identity management and safety alerts.
Management App: Real time monitoring and site control.
... | https://stackoverflow.com/questions/79931120/architecture-advice-for-react-native-vs-flutter-for-a-3-tier-saas-with-an-existi | flutter, react-native, architecture, hardware, saas | 1,777,012,955 |
se_70641673 | stackoverflow | MOBILE_DEVELOPMENT | How to create a roller like animation? Similar to slot machine | How to create a roller like animation? Similar to slot machine
I want to create a custom animation, basically something like a slot machine, but I want the user to be able to move up/down each block with letters by his finger, not spin automatically.
I tried looking into this library: https://pub.dev/packages/roll_slo... | https://stackoverflow.com/questions/70641673/how-to-create-a-roller-like-animation-similar-to-slot-machine | flutter | 1,641,734,420 |
se_79824802 | stackoverflow | MOBILE_DEVELOPMENT | Is there an disadvantage to choose a very low min SDK level for an Android app? | Is there an disadvantage to choose a very low min SDK level for an Android app?
This is my first time developing an Android app, and I have very little experience with any kind of frontend development.
The Android app is fairly simple in nature. It will display some graphs and take a few inputs. There isn't anything f... | https://stackoverflow.com/questions/79824802/is-there-an-disadvantage-to-choose-a-very-low-min-sdk-level-for-an-android-app | android, flutter | 1,763,575,802 |
se_79741535 | stackoverflow | MOBILE_DEVELOPMENT | Android 16 KB page size support in a Flutter app | Android 16 KB page size support in a Flutter app
I have a Flutter application where very less code written in Android (push notifications and dynamic links). I am following an Android page and am using Flutter version 3.29.2.
I created an emulator with 16 KB page size support and tried to check the APK file against a
... | https://stackoverflow.com/questions/79741535/android-16-kb-page-size-support-in-a-flutter-app | android, flutter, dart, mobile, 16kb-page-size | 1,755,719,588 |
se_61037276 | stackoverflow | MOBILE_DEVELOPMENT | Difference between converting a list to a new type using List.from vs List.map? | Difference between converting a list to a new type using List.from vs List.map?
Say I want to convert following collection to List<int>,
final listDouble = <double>[1.0, 2.0];
I can either use
final listInt = List<int>.from(listDouble);
or
final listInt = listDouble.map<int>((e) => e.toInt()).toList();
Is there any... | https://stackoverflow.com/questions/61037276/difference-between-converting-a-list-to-a-new-type-using-list-from-vs-list-map | flutter, dart | 1,586,053,639 |
se_67249783 | stackoverflow | MOBILE_DEVELOPMENT | _ceil() & _round() same as lodash JavaScript utility library in flutter | _ceil() & _round() same as lodash JavaScript utility library in flutter
everyone , i want to know anyone create function or package like _ceil or _round() same as lodash JavaScript utility library ? i need it , thank in advance
reference link : lodash | https://stackoverflow.com/questions/67249783/ceil-round-same-as-lodash-javascript-utility-library-in-flutter | flutter, dart, flutter-dependencies | 1,619,325,106 |
se_63613693 | stackoverflow | MOBILE_DEVELOPMENT | How to convert Uint8List to Float32List to List<double> in Flutter? | How to convert Uint8List to Float32List to List<double> in Flutter?
I'm using Dart's typed_data library together with flutter_bluetooth_serial. One of the latter's limitation is it can only read data in Uint8List format. However, I need to send a bunch of single-precision floating-point numbers (specifically fro... | https://stackoverflow.com/questions/63613693/how-to-convert-uint8list-to-float32list-to-listdouble-in-flutter | flutter, dart | 1,598,522,771 |
se_64924038 | stackoverflow | MOBILE_DEVELOPMENT | Is there any way to create an app icon in a flutter for both(android, ios)? | Is there any way to create an app icon in a flutter for both(android, ios)?
In android and ios, there is an option to create or customize image shape, background, etc. For an app icon.
But in a flutter, it's not possible.
I used this library,
flutter_launcher_icons
but they only set icon(not customize for both android... | https://stackoverflow.com/questions/64924038/is-there-any-way-to-create-an-app-icon-in-a-flutter-for-bothandroid-ios | android, ios, flutter, dart, plugins | 1,605,848,364 |
se_79457791 | stackoverflow | MOBILE_DEVELOPMENT | change app icon by 'flutter_launcher_icons | change app icon by 'flutter_launcher_icons
when i try to change the icon of the flutter desktop app , i found the quality of the icon is bad although the uploaded icon image in the assets is (1024*1024) why this happen ?
this is the pubspec.yaml :
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launch... | https://stackoverflow.com/questions/79457791/change-app-icon-by-flutter-launcher-icons | flutter, dart | 1,740,150,192 |
se_79930543 | stackoverflow | MOBILE_DEVELOPMENT | Flutter: Auto-populate Excel (DTR template) from SQLite data and preview before export | Flutter: Auto-populate Excel (DTR template) from SQLite data and preview before export
The app can now save the records. My only problem is I'm stock on how the app can use my existing template and automatically insert the data in each cell, while also adjusting the cell format if it's Saturday and Sunday.
PS: App is ... | https://stackoverflow.com/questions/79930543/flutter-auto-populate-excel-dtr-template-from-sqlite-data-and-preview-before | excel, flutter, dart, sqlite, file-generation | 1,776,926,288 |
se_76567178 | stackoverflow | MOBILE_DEVELOPMENT | Flutter - go_router and navigation with query parameters | Flutter - go_router and navigation with query parameters
I'm building a simple web application with Flutter. Navigation is done using go_router.
static final routerConfig = GoRouter(
routes: [
GoRoute(
path: Routes.login,
builder: (context, state) => const LoginPage(),
),
GoRout... | https://stackoverflow.com/questions/76567178/flutter-go-router-and-navigation-with-query-parameters | flutter | 1,687,885,561 |
se_79927012 | stackoverflow | MOBILE_DEVELOPMENT | Is it common for itemBuilder code to run multiple times? | Is it common for itemBuilder code to run multiple times?
I have attached the code and output below. I am using ExpandablePageView package. The code has a print statement in the itemBuilder block which gives multiple output in the debug console. Why is this block's code executing multiple times? However, despite the pr... | https://stackoverflow.com/questions/79927012/is-it-common-for-itembuilder-code-to-run-multiple-times | flutter, dart, flutter-dependencies | 1,776,390,939 |
se_76799271 | stackoverflow | MOBILE_DEVELOPMENT | Flutter Textfield in a row with a DropdownButton has different height | Flutter Textfield in a row with a DropdownButton has different height
Error on UI
The Textfield Widget has other height than the dropdownbutton...
Expanded(
child: TextFormField(
decorat... | https://stackoverflow.com/questions/76799271/flutter-textfield-in-a-row-with-a-dropdownbutton-has-different-height | flutter | 1,690,744,317 |
se_79930142 | stackoverflow | MOBILE_DEVELOPMENT | Handling background camera restrictions for continuous posture monitoring in Android | Handling background camera restrictions for continuous posture monitoring in Android
I’m working on a project that does real-time posture monitoring. The architecture relies on taking a frame from the front camera every 3 minutes, running it through ML Kit, and updating a local score. The user starts the tracking sess... | https://stackoverflow.com/questions/79930142/handling-background-camera-restrictions-for-continuous-posture-monitoring-in-and | android, flutter | 1,776,867,447 |
se_73412696 | stackoverflow | MOBILE_DEVELOPMENT | A problem occurred evaluating project ':honeywell_scanner' | A problem occurred evaluating project ':honeywell_scanner'
The plugin flutter_absolute_path uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a fu... | https://stackoverflow.com/questions/73412696/a-problem-occurred-evaluating-project-honeywell-scanner | android, flutter, dart, gradle | 1,660,890,804 |
se_66991554 | stackoverflow | MOBILE_DEVELOPMENT | Can we do Flutter App Development Wireless ? Without connecting USB cable from Mobile to laptop? | Can we do Flutter App Development Wireless ? Without connecting USB cable from Mobile to laptop?
We have to attach mobile with the laptop through USB cable during development. Because, often usb cable got disconnect and mobile connection got lost and again need to install whole App.
Is there any option do it wireless ... | https://stackoverflow.com/questions/66991554/can-we-do-flutter-app-development-wireless-without-connecting-usb-cable-from-m | android, flutter, adb | 1,617,817,997 |
se_50293503 | stackoverflow | MOBILE_DEVELOPMENT | How to set the width and height of a button in Flutter? | How to set the width and height of a button in Flutter?
I have seen that I can't set the width of a ElevatedButton in Flutter. If I have well understood, I should put the ElevatedButton into a SizedBox. I will then be able to set the width or height of the box. Is it correct? Is there another way to do it?
This is a b... | https://stackoverflow.com/questions/50293503/how-to-set-the-width-and-height-of-a-button-in-flutter | flutter, flutter-layout | 1,526,045,552 |
se_72534745 | stackoverflow | MOBILE_DEVELOPMENT | cargo ndk fails due to pkg-config issue | cargo ndk fails due to pkg-config issue
Repro
git clone https://github.com/banool/aclip.git
cd aclip/frontend/native
cargo ndk -t armeabi-v7a -o ../android/app/src/main/jniLibs build
The code in question: https://github.com/banool/aclip.
Relevant env:
PKG_CONFIG_PATH=/opt/homebrew/lib/pkgconfig/
LDFLAGS=-L/opt/homebr... | https://stackoverflow.com/questions/72534745/cargo-ndk-fails-due-to-pkg-config-issue | android, flutter, rust, android-ndk, rust-cargo | 1,654,619,705 |
se_58642233 | stackoverflow | MOBILE_DEVELOPMENT | Unhandled Exception: DioError PONSE]: Http status error [500] | Unhandled Exception: DioError PONSE]: Http status error [500]
I made FormData use the dio package to upload images to the database, but my compilation was running "flutter run", an error appeared.
After I see the error that appears is a problem with the Http status error [500].
Dio dio = new Dio();
dio.options.heade... | https://stackoverflow.com/questions/58642233/unhandled-exception-dioerror-ponse-http-status-error-500 | android, post, flutter, dart, dio | 1,572,520,728 |
se_70729765 | stackoverflow | MOBILE_DEVELOPMENT | Flutter Execution failed for task ':app:processDebugResources'. Could not resolve all dependencies for configuration ':app:debugCompileClasspath' | Flutter Execution failed for task ':app:processDebugResources'. Could not resolve all dependencies for configuration ':app:debugCompileClasspath'
A Flutter project stopped building today all of a sudden.
Here's the full error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution faile... | https://stackoverflow.com/questions/70729765/flutter-execution-failed-for-task-appprocessdebugresources-could-not-resolv | android, flutter, dart | 1,642,333,965 |
se_79928682 | stackoverflow | MOBILE_DEVELOPMENT | Specify language for flutter in-app browser | Specify language for flutter in-app browser
I have a Flutter application that opens a URL using an in-app browser:
await launchUrl(finalUri, mode: LaunchMode.inAppBrowserView);
The in-app browser uses the device’s primary system language by default. Is there a way to explicitly set or override the language (e.g., forc... | https://stackoverflow.com/questions/79928682/specify-language-for-flutter-in-app-browser | html, flutter | 1,776,675,235 |
se_79928444 | stackoverflow | MOBILE_DEVELOPMENT | Flutter splash/onboarding images are not scaling correctly on different screen sizes | Flutter splash/onboarding images are not scaling correctly on different screen sizes
I developed a mobile application using Flutter, but I’m having trouble with the images shown on the initial screen (such as splash or onboarding screens).
The images do not scale properly across different devices and screen sizes. On ... | https://stackoverflow.com/questions/79928444/flutter-splash-onboarding-images-are-not-scaling-correctly-on-different-screen-s | flutter | 1,776,628,263 |
se_79919129 | stackoverflow | MOBILE_DEVELOPMENT | How can I create a tab-style widget with seamless inverted/concave bottom corners in Flutter? | How can I create a tab-style widget with seamless inverted/concave bottom corners in Flutter?
I’m trying to create a bottom-aligned tab widget. My current approach using overlapping shapes results in discontinuous edges and white gaps between the tab and the main container.
How can I achieve a smooth, "fused" look wit... | https://stackoverflow.com/questions/79919129/how-can-i-create-a-tab-style-widget-with-seamless-inverted-concave-bottom-corner | flutter, dart | 1,775,142,731 |
se_78483244 | stackoverflow | MOBILE_DEVELOPMENT | Invalid bundle - on iPad, you need to include the Main.storyboard launch storyboard file in your bundle | Invalid bundle - on iPad, you need to include the Main.storyboard launch storyboard file in your bundle
I have Created one application for mobile using flutter.
I uploaded app for google play platform successfully.
After that I uploaded app for iPhone AppStore through Xcode it gives error like belove
"Invalid bundle. ... | https://stackoverflow.com/questions/78483244/invalid-bundle-on-ipad-you-need-to-include-the-main-storyboard-launch-storybo | flutter, xcode, dart, ipad, app-store | 1,715,768,315 |
se_79928473 | stackoverflow | MOBILE_DEVELOPMENT | Flutter Text Field's cursor never appear and text always selected | Flutter Text Field's cursor never appear and text always selected
After upgrading to Flutter 3.41, I'm facing a strange issue with TextField.
When I tap on a specific character to edit the text:
The entire text (or part of it) gets selected
The cursor does not appear at all
I cannot place the cursor manually
... | https://stackoverflow.com/questions/79928473/flutter-text-fields-cursor-never-appear-and-text-always-selected | flutter, dart, uitextfield | 1,776,635,041 |
se_52721661 | stackoverflow | MOBILE_DEVELOPMENT | How to catch exception in flutter? | How to catch exception in flutter?
This is my exception class. Exception class has been implemented by the abstract exception class of flutter. Am I missing something?
class FetchDataException implements Exception {
final _message;
FetchDataException([this._message]);
String toString() {
if (_message == null) retur... | https://stackoverflow.com/questions/52721661/how-to-catch-exception-in-flutter | flutter, dart, exception, model-view-controller, flutter-layout | 1,539,089,896 |
se_57250986 | stackoverflow | MOBILE_DEVELOPMENT | The argument type 'Future<Widget>' can't be assigned to the parameter type 'Widget'.dart | The argument type 'Future<Widget>' can't be assigned to the parameter type 'Widget'.dart
Here I have to use pdfImageFromImageProvider function to stateless widget. So, Is it possible to resolve this issue using stateless widget?
Future<Widget> getWidgetAsync(double size) async {
PdfImage val... | https://stackoverflow.com/questions/57250986/the-argument-type-futurewidget-cant-be-assigned-to-the-parameter-type-widg | pdf, flutter, dart, flutter-layout, flutter-dependencies | 1,564,392,954 |
se_73884885 | stackoverflow | MOBILE_DEVELOPMENT | Animated Splash Screen showing white page | Animated Splash Screen showing white page
I wanted to use the AnimatedSplashScreen but in my case it didn't work. This is the AnimatedSplashScreen displayed in my app:
Here is my SplashScreen-Class:
class SplashScreen extends StatelessWidget {
const SplashScreen({super.key});
@override
Widget build(BuildContex... | https://stackoverflow.com/questions/73884885/animated-splash-screen-showing-white-page | flutter, dart | 1,664,382,517 |
se_62134361 | stackoverflow | MOBILE_DEVELOPMENT | How can I change the size of path? | How can I change the size of path?
How can I change the size of path in this section of code? When drawing, the path goes beyond the phone screen. I should not have access to drawing the paths themselves.
Path path = getPath(); //the path is given dynamically
canvas.drawPath(
path,
Paint()
..style = Pain... | https://stackoverflow.com/questions/62134361/how-can-i-change-the-size-of-path | flutter | 1,591,021,384 |
se_79928017 | stackoverflow | MOBILE_DEVELOPMENT | How to get reliable current time in Flutter when device time is changed (offline mode)? | How to get reliable current time in Flutter when device time is changed (offline mode)?
I’m working on a Flutter application where I need to track accurate time (e.g., for attendance, session tracking, or time-based validations).
Question:
What is the best way to handle accurate time tracking in offline mode in Flutte... | https://stackoverflow.com/questions/79928017/how-to-get-reliable-current-time-in-flutter-when-device-time-is-changed-offline | flutter, dart, datetime, time, offline | 1,776,531,769 |
se_50433885 | stackoverflow | MOBILE_DEVELOPMENT | SliverAppBar with TabBar | SliverAppBar with TabBar
How can I add TabBar to SliverAppBar in Flutter? So far when I add a bottom to SliverAppBar, title gets pinned to those tabs, while I want it to be above those tabs.
Any ideas?
My code:
class _MyHomePageState extends State<MyHomePage> with SingleTickerProviderStateMixin{
TabController co... | https://stackoverflow.com/questions/50433885/sliverappbar-with-tabbar | flutter | 1,526,812,246 |
se_73122789 | stackoverflow | MOBILE_DEVELOPMENT | Exit an infinite stream | Exit an infinite stream
I've written this piece of code in order to scan Bluetooth devices in my Flutter app with the help of flutter_blue package.
Stream<List<ScanResult>> scannedDevices(int durationSeconds) async* {
Stream<List<ScanResult>> stream = _flutterBlue.scanResults;
List<ScanResult> payload = List<ScanR... | https://stackoverflow.com/questions/73122789/exit-an-infinite-stream | flutter, dart | 1,658,835,902 |
se_79925839 | stackoverflow | MOBILE_DEVELOPMENT | Flutter can’t read GPS EXIF from image, but Windows properties shows latitude and longitude | Flutter can’t read GPS EXIF from image, but Windows properties shows latitude and longitude
Why would Flutter/Dart fail to read GPS EXIF data from an image that clearly has latitude and longitude in Windows properties? Is this a limitation of the EXIF package, a problem with the image picker returning a stripped copy,... | https://stackoverflow.com/questions/79925839/flutter-can-t-read-gps-exif-from-image-but-windows-properties-shows-latitude-an | android, flutter, dart | 1,776,241,577 |
se_70118286 | stackoverflow | MOBILE_DEVELOPMENT | How can i efficiently implement centered bottom navbar design in flutter | How can i efficiently implement centered bottom navbar design in flutter
I am trying to implement this bottom navigation bar design using flutter for mobile, and I can't figure out what exactly I am doing wrong. I want it to be evenly spaced and centered. This is the design image
I tried different approaches but this ... | https://stackoverflow.com/questions/70118286/how-can-i-efficiently-implement-centered-bottom-navbar-design-in-flutter | flutter, dart, flutter-layout, flutter-animation | 1,637,883,316 |
se_79610652 | stackoverflow | MOBILE_DEVELOPMENT | How to properly handle dates with Laravel? | How to properly handle dates with Laravel?
So, I'm working with Laravel. My project is set to the TIMEZONE: UTC.
When I consume my project's API on a Flutter mobile application, for example, I convert the dates received from the server in UTC to the user's local time zone (on mobile client).
How can I do this for a t... | https://stackoverflow.com/questions/79610652/how-to-properly-handle-dates-with-laravel | laravel, flutter, date, timezone | 1,746,624,555 |
se_72788074 | stackoverflow | MOBILE_DEVELOPMENT | initialize workmanager in flutter for ios | initialize workmanager in flutter for ios
i'm trying to set up ios configration as document
https://github.com/fluttercommunity/flutter_workmanager/blob/main/IOS_SETUP.md
what's the wrong with this set up
i have this error:
Unhandled Exception: PlatformException(bgTaskSchedulingFailed(Error
Domain=BGTaskSchedulerErro... | https://stackoverflow.com/questions/72788074/initialize-workmanager-in-flutter-for-ios | ios, flutter, dart, flutter-workmanager | 1,656,425,660 |
se_67699823 | stackoverflow | MOBILE_DEVELOPMENT | Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15 | Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15
In Stripe, my client wants email and cardholder name, but the Stripe payment UI doesn't provide that option in com.stripe.android.view.CardMultilineWidget. I wanted to give it a try with ... | https://stackoverflow.com/questions/67699823/module-was-compiled-with-an-incompatible-version-of-kotlin-the-binary-version-o | android, flutter, kotlin, gradle, stripe-payments | 1,622,011,507 |
se_72267071 | stackoverflow | MOBILE_DEVELOPMENT | Error (Xcode): Framework not found Flutter | Error (Xcode): Framework not found Flutter
How can solve this issue: Error (Xcode): Framework not found Flutter?
I tried to:
delete ios then pod install...
flutter clean...
create new project etc.
but still cannot solve.
Launching lib/main.dart on iPhone 13 Pro Max in debug mode...
/Users/pin-chientseng/Desktop/yoma... | https://stackoverflow.com/questions/72267071/error-xcode-framework-not-found-flutter | flutter | 1,652,748,527 |
se_79203974 | stackoverflow | MOBILE_DEVELOPMENT | CocoaPods Error: Unable to find compatibility version string for object version '70' after adding Share Extension | CocoaPods Error: Unable to find compatibility version string for object version '70' after adding Share Extension
I'm getting this error when trying to run pod install after adding a Share Extension to my Flutter iOS project:
CopyArgumentError - [Xcodeproj] Unable to find compatibility version string for obje... | https://stackoverflow.com/questions/79203974/cocoapods-error-unable-to-find-compatibility-version-string-for-object-version | ios, flutter, cocoapods, share-extension | 1,732,029,119 |
se_79925333 | stackoverflow | MOBILE_DEVELOPMENT | How can I save a CSV file locally in a Flutter app so it persists within the app? | How can I save a CSV file locally in a Flutter app so it persists within the app?
I'm building a Flutter app and I need to generate and save a CSV file from within the app. My goal is for the file to be stored locally on the device so that it persists between app launches and remains accessible to the app (not just te... | https://stackoverflow.com/questions/79925333/how-can-i-save-a-csv-file-locally-in-a-flutter-app-so-it-persists-within-the-app | flutter, dart, csv | 1,776,167,783 |
se_79870202 | stackoverflow | MOBILE_DEVELOPMENT | Which API's are best for E-commerce Website? | Which API's are best for E-commerce Website?
I am aware that Rest API are not only simple to create but also capable of managing traffic effectively if they are not all accessed at once. SOAP API are very reliable but I am still unsure what the best suggestion is for me to use. | https://stackoverflow.com/questions/79870202/which-apis-are-best-for-e-commerce-website | java, android, flutter, rest, e-commerce | 1,768,670,028 |
se_79924779 | stackoverflow | MOBILE_DEVELOPMENT | Flutter iOS: USSD code with * and # not launching in phone dialer (works on Android) | Flutter iOS: USSD code with * and # not launching in phone dialer (works on Android)
hello,
Flutter iOS: USSD code with * and # not launching in phone dialer (works on Android)
flutter ios ussd url-launcher tel-uri PROBLEM
My Flutter app executes USSD codes for mobile money recharges. It worked correctly on iOS befor... | https://stackoverflow.com/questions/79924779/flutter-ios-ussd-code-with-and-not-launching-in-phone-dialer-works-on-andr | ios, swift, flutter, dart, ussd | 1,776,083,504 |
se_79924709 | stackoverflow | MOBILE_DEVELOPMENT | Maintain a flutter foreground service alive | Maintain a flutter foreground service alive
Quick context:
I just started an internship in a startup and they asked me to make a prototype of an app that will help doctors gather background information on the patients that opt-in in order to "catch" early signs of a possible event like a suicide attempt or an anxiety ... | https://stackoverflow.com/questions/79924709/maintain-a-flutter-foreground-service-alive | flutter, foreground-service | 1,776,075,359 |
se_59601031 | stackoverflow | MOBILE_DEVELOPMENT | Flutter TabBar. How to change the padding | Flutter TabBar. How to change the padding
Here's my code:
import 'package:flutter/material.dart';
import '../widgets/profile_page/user_info.dart';
import '../widgets/profile_page/user_messages.dart';
import '../widgets/profile_page/user_multimedia.dart';
import '../widgets/profile_page/user_stats.dart';
class Profi... | https://stackoverflow.com/questions/59601031/flutter-tabbar-how-to-change-the-padding | flutter, dart | 1,578,235,705 |
se_72379271 | stackoverflow | MOBILE_DEVELOPMENT | Flutter Material3 disable appbar color change on scroll | Flutter Material3 disable appbar color change on scroll
Using Material3 useMaterial3: true in Flutter version 3.0.1, when scrolling lets say listview, the appbar changes to darker color... Can this be disabled?
Example from native android Material3 MaterialToolbar disable coloring at scroll: | https://stackoverflow.com/questions/72379271/flutter-material3-disable-appbar-color-change-on-scroll | flutter, material-ui | 1,653,488,105 |
se_78195307 | stackoverflow | MOBILE_DEVELOPMENT | Flutter WidgetsBindingObserver call Riverpod Provider | Flutter WidgetsBindingObserver call Riverpod Provider
I am currently working on a Flutter app. Here, when the lifecycle state of the app changes to resumed, I need to set a value in a Riverpod provider to update the state of the page. however, I can't call a provider in the didChangeAppLifecycleState method. how can I... | https://stackoverflow.com/questions/78195307/flutter-widgetsbindingobserver-call-riverpod-provider | flutter, dart, riverpod | 1,710,956,175 |
se_60973823 | stackoverflow | MOBILE_DEVELOPMENT | Unable to parse the JSON data in flutter. Json Parser Error in flutter | Unable to parse the JSON data in flutter. Json Parser Error in flutter
Logs:
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: FormatException: Unexpected character (at line 2, character 1)
E/flutter (13817): <!DOCTYPE html>
E/flutter (13817): ^
E/flutter (13817):
E/flutter (13817): #0 _Chunked... | https://stackoverflow.com/questions/60973823/unable-to-parse-the-json-data-in-flutter-json-parser-error-in-flutter | android, json, firebase, flutter, dart | 1,585,752,904 |
se_79924501 | stackoverflow | MOBILE_DEVELOPMENT | Flutter Android - android.jar SDK 35 corrupted 27MB instead of 100MB - Windows - RES_TABLE_TYPE_TYPE error | Flutter Android - android.jar SDK 35 corrupted 27MB instead of 100MB - Windows - RES_TABLE_TYPE_TYPE error
Problem
Building a Flutter app on Windows always fails with this error:
aapt2.exe E LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
Failed to load resources table in APK android-35... | https://stackoverflow.com/questions/79924501/flutter-android-android-jar-sdk-35-corrupted-27mb-instead-of-100mb-windows | android, flutter, gradle, sdk | 1,776,027,921 |
se_64588480 | stackoverflow | MOBILE_DEVELOPMENT | Handle large number of http requests at once in flutter | Handle large number of http requests at once in flutter
Requirement:
I've 1000 URLs of PDF, from which I want to create the zip.
Function:
static Future<bool> downloadZip(List<String> urls) {
int counter = 0
for(String url in urls) {
bytesForFileAtUrl(url).then((bytes){
counter++;
... | https://stackoverflow.com/questions/64588480/handle-large-number-of-http-requests-at-once-in-flutter | flutter, http, request, simultaneous | 1,603,964,504 |
se_71220359 | stackoverflow | MOBILE_DEVELOPMENT | Execution failed for task ':app:processDebugResources | Execution failed for task ':app:processDebugResources
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking fa... | https://stackoverflow.com/questions/71220359/execution-failed-for-task-appprocessdebugresources | firebase, flutter, dart, flutter-build | 1,645,528,742 |
se_77247605 | stackoverflow | MOBILE_DEVELOPMENT | Build Flutter APK release cannot show some part of display. where is the error? | Build Flutter APK release cannot show some part of display. where is the error?
This is the Code ... when i build in debug mode its work perfectly but when i release (Build Flutter APK ) it cannot show some part of display.. what should i do?[enter image description here](https://i.sstatic.net/d9rLb.png)
import 'packa... | https://stackoverflow.com/questions/77247605/build-flutter-apk-release-cannot-show-some-part-of-display-where-is-the-error | flutter | 1,696,630,577 |
se_59380906 | stackoverflow | MOBILE_DEVELOPMENT | How do I close a Subject receiving a infinite Stream of data? | How do I close a Subject receiving a infinite Stream of data?
I have a problem on how to properly make a inifite stream of data to stop beeing added to a subject. Like the example below:
void main() async {
var infinite = Stream.periodic(0.5.seconds, (it) => it);
var subject = BehaviorSubject<int>();
subject.ad... | https://stackoverflow.com/questions/59380906/how-do-i-close-a-subject-receiving-a-infinite-stream-of-data | flutter, dart, rxdart | 1,576,611,044 |
se_67871817 | stackoverflow | MOBILE_DEVELOPMENT | How to use overlayColor in TabBar in flutter? | How to use overlayColor in TabBar in flutter?
The Material Design TabBar supports the named parameter overlayColor which is defined as MaterialStateProperty<Color?>? overlayColor.
I'm unable to use it and I couldn't find any examples of TabBar where it is used. Does anyone know how to use it? | https://stackoverflow.com/questions/67871817/how-to-use-overlaycolor-in-tabbar-in-flutter | flutter, tabbar | 1,623,069,726 |
se_66599399 | stackoverflow | MOBILE_DEVELOPMENT | Flutter: check if device supports eSim | Flutter: check if device supports eSim
Is there any possibility to check if a device supports eSim on Flutter?
I know it can be done with Flutter Platform Channels but I am particularly interested in Flutter solution. | https://stackoverflow.com/questions/66599399/flutter-check-if-device-supports-esim | flutter | 1,615,549,918 |
se_79411994 | stackoverflow | MOBILE_DEVELOPMENT | Flutter:Do an operation if await takes more then 2 seconds | Flutter:Do an operation if await takes more then 2 seconds
final response = await _errorReportRepository.sendErrorReport(event.errorReport);
Hi,I want to do an operation if this await takes more than 2 seconds and not stop the process.
Like an example. If it takes more than 2 seconds, change a variable to true direct... | https://stackoverflow.com/questions/79411994/flutterdo-an-operation-if-await-takes-more-then-2-seconds | flutter, dart, asynchronous, async-await | 1,738,678,447 |
se_77259439 | stackoverflow | MOBILE_DEVELOPMENT | my xcode_backend.dart file has errors when trying to run my application | my xcode_backend.dart file has errors when trying to run my application
When trying to run my flutter program, i'm getting the following errors:
Unhandled exception:
Null check operator used on a null value
#0 Context.embedFlutterFrameworks
(file:///Users/mustafa/flutter/packages/flutter_tools/bin/xco... | https://stackoverflow.com/questions/77259439/my-xcode-backend-dart-file-has-errors-when-trying-to-run-my-application | ios, flutter, xcode | 1,696,859,844 |
se_71043685 | stackoverflow | MOBILE_DEVELOPMENT | The argument type 'Object?' can't be assigned to the parameter type 'String? | The argument type 'Object?' can't be assigned to the parameter type 'String?
I get this error with my function,
"The argument type 'Object?' can't be assigned to the parameter type 'String?'"
on the line containing snapshot.docs[0].data(''),
Please help me fix it. Any help would be greatly appreciate... | https://stackoverflow.com/questions/71043685/the-argument-type-object-cant-be-assigned-to-the-parameter-type-string | flutter, dart, google-cloud-firestore | 1,644,377,575 |
se_52672137 | stackoverflow | MOBILE_DEVELOPMENT | Await future for a specific time | Await future for a specific time
How would you wait for future response for a specific amount of time?
Say, we make a http post request and await for its response before we close the http request, but, we wait for only 3 secs, else we close the request.
How would you achieve that?
Something like
Future makePostR... | https://stackoverflow.com/questions/52672137/await-future-for-a-specific-time | asynchronous, dart, async-await, flutter, future | 1,538,767,558 |
se_52191451 | stackoverflow | MOBILE_DEVELOPMENT | Bad state: You cannot close the subject while items are being added from addStream in flutter | Bad state: You cannot close the subject while items are being added from addStream in flutter
I am using RxDart to observe changes and update the UI accordingly. When the app launches I am making a network call and successfully getting the data, observe the changes and update the UI accordingly. But when I am disposin... | https://stackoverflow.com/questions/52191451/bad-state-you-cannot-close-the-subject-while-items-are-being-added-from-addstre | dart, flutter, rxdart | 1,536,172,317 |
se_79486201 | stackoverflow | MOBILE_DEVELOPMENT | While using bloc arithmetic operator not working in flutter? | While using bloc arithmetic operator not working in flutter?
class CounterBloc extends Bloc<CounterEvent, CounterState> {
CounterBloc() : super(CounterState()) {
on<CounterIncrementEvent>((event, emit) {
emit(state.copyWith(count: state.count++));
// if i use state.count+1 its working.
});
on<Cou... | https://stackoverflow.com/questions/79486201/while-using-bloc-arithmetic-operator-not-working-in-flutter | flutter | 1,741,171,064 |
se_78846487 | stackoverflow | MOBILE_DEVELOPMENT | Flutter app: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries | Flutter app: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries
I want to my flutter project on a virtual device in Android Studio, but it always doesn't work. I always receive this code error
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk
Installing build\app\ou... | https://stackoverflow.com/questions/78846487/flutter-app-install-failed-invalid-apk-failed-to-extract-native-libraries | android, flutter, debugging, adb | 1,723,090,027 |
se_79923707 | stackoverflow | MOBILE_DEVELOPMENT | How can I initialize a FlutterMethodChannel for iOS using a UISceneDelegate? | How can I initialize a FlutterMethodChannel for iOS using a UISceneDelegate?
My iOS app uses a FlutterMethodChannel and I’m adopting the new UISceneDelegate strategy described here: https://docs.flutter.dev/release/breaking-changes/uiscenedelegate
I’m trying to initialize it in didInitializeImplicitFlutterEngine and I... | https://stackoverflow.com/questions/79923707/how-can-i-initialize-a-fluttermethodchannel-for-ios-using-a-uiscenedelegate | ios, swift, flutter | 1,775,844,189 |
se_79922953 | stackoverflow | MOBILE_DEVELOPMENT | Xcode 26.2 Flutter Command PhaseScriptExecution failed with a nonzero exit code | Xcode 26.2 Flutter Command PhaseScriptExecution failed with a nonzero exit code
I created a new Flutter project and ran it successfully on the emulator.
Everything works fine there.
However, when I connect my iPhone and try to run the app via Xcode after selecting a team in the Signing & Capabilities section, I always... | https://stackoverflow.com/questions/79922953/xcode-26-2-flutter-command-phasescriptexecution-failed-with-a-nonzero-exit-code | flutter, xcode | 1,775,750,456 |
se_57503160 | stackoverflow | MOBILE_DEVELOPMENT | StreamSubscription.cancel vs StreamController.close on Memory Leaks | StreamSubscription.cancel vs StreamController.close on Memory Leaks
Does calling StreamController.close automatically cancel a StreamSubscription and removes all references?
I think it makes sense but I can't find it on the docs to be sure.
I have the following code:
dispose: (context, bloc) {
_blocSubscription.ca... | https://stackoverflow.com/questions/57503160/streamsubscription-cancel-vs-streamcontroller-close-on-memory-leaks | flutter, dart | 1,565,824,753 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.