Questions tagged [flutter]
Use this tag for questions about the Flutter cross-platform UI toolkit. If your question is platform-specific, tag the platform as well (e.g., [android], [ios], etc.). You may also wish to include the [dart] tag for coding questions.
131,652
questions
0
votes
1
answer
2
views
Flutter iOS App stuck or fails? What to Do?
What to do when the Flutter app gets stuck on launching or installing dependencies or it fails out of the blue. I have noticed this issue coming up more and more in iOS. Android has its own issues. ...
0
votes
0
answers
2
views
How do I run the bash script from flutter linux app?
Is there a way to run the bash script on the Ubuntu terminal and get the terminal output from the terminal to the Flutterer App?
0
votes
0
answers
6
views
LateInitializationError: Field 'myfuture' has not been initialized
The issue that I am facing is in future builder in flutter.When opening the page first time the data is loaded successfully but when I go to a different page and then return to the same page it throws ...
0
votes
0
answers
12
views
How can detect that the offset is between two offsets?
I'm creating a function to draw and edit shapes using CustomPaint().
It must be able to select the shape to move or delete it.
For this, I need to be able to detect if the offset of the place I ...
0
votes
1
answer
17
views
Why is the flutter setState not updating the list?
I have two api's from which I get data, I wanna check if any of the desired field match with each other data coming but it don't seem to work.
class Home extends StatefulWidget {
const Home({ Key? ...
0
votes
0
answers
13
views
flutter checkbox with api value
I need the container in the code below to take a bool value.
the row is inside a data table and I need each column to have one check box or one tap selected. whatever works.
Container(
...
0
votes
0
answers
7
views
Objectbox Flutter Update Values Not Working
According to the official documentation to update values you simply need to change them.
https://objectbox.io/crud-flutter-database/
This is their official example:
tasks[index].dateFinished = ...
0
votes
0
answers
6
views
How to show JSON Data in SfCartesianChart in Flutter?
please help.. I have tried to put JSON data in flutter chart..trying for almost 1 week but its not working and its not showing y axis point and not x axis points any one can help me the ...
0
votes
0
answers
7
views
What are specific steps if any, after cloning an old flutter project?
I face many problems after cloning flutter projects, especially if it is an old project. What are the steps to be followed after cloning a flutter project.
0
votes
0
answers
7
views
Is there a way to autofocus keyboard in webview textinput field in flutter?
I am using InAppWebView to show the webpage in a flutter app. Here keyboard is shown only when I tap on the input field. Is there a way that the keyboard is visible before tapping on the input field? ...
0
votes
0
answers
11
views
How to print and connect to printer using flutter desktop via usb?
I want to connect to the printer via usb but I cant find any solutions to do this.
0
votes
0
answers
11
views
Is there way to cache audio files from API response in flutter?
I need to cache audio files and save it locally so as to remove latency while playing it. I tried using the audioplayers package but I could not cache it. Could anyone help with this caching? ...
0
votes
0
answers
9
views
flutter change setStateicon of that particular box which I click
I want to change icon of that specific box in a loop that I click.
I have two icons that have onTap functionality. and on click user add to fav list and when the response id success and add to fav ...
0
votes
0
answers
12
views
This request is missing a valid app identifier error
I was trying to make a sign in using phone number in my flutter app but I got this error :
This request is missing a valid app identifier, meaning that neither
safetyNet checks nor reCAPTCHA checks ...
-1
votes
3
answers
36
views
I can't understand what is the red line code is want to say
enter image description here
hello guys
I didn't understand the red line mark coed why it is used in this code.
is their any other alternate code we can use instead of that.
-1
votes
0
answers
13
views
Getting "HTTP Exception : Failed Forbidden " Error while integrating Twitter Auth [closed]
I am using Firebase to integrate Twitter Login into my app.
When I am calling the function to initiate login. It opens a web window where I put the id and password for the Twitter account and ...
0
votes
0
answers
7
views
IsarError: Could not initialize IsarCore library in Flutter
I got errors when running a Flutter app on Samsung Galaxy A13 in release mode. These errors are below
E/flutter ( 2872): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: IsarError: ...
0
votes
0
answers
13
views
Flutter web: The communication between Flutter web and Flutter APP fails
APP : Developed with Flutter
Web: Develop with Flutter
Use the webview_flutter plugin to load web pages in app.
Now the web page wants to communicate with the APP.
It is possible to use JavaScript ...
0
votes
3
answers
23
views
Redirect to appstore in flutter
I try to launch a link in my apps, so when user click the button it will redirect to appstore. Here is part of the code:
InkWell(
onTap: () =>launchapp(),
...
0
votes
2
answers
26
views
How to Update Particular TextFormFiled value Using TextEditing Controller after fetching data from API in flutter?
** TextEditingController gstController =
TextEditingController(
text: snapshot.data![index].gSTNo.toString());
TextFormField(
controller: gstController,
decoration: InputDecoration(
hintText: 'Enter ...
0
votes
0
answers
18
views
PlatformException(error, Attempt to invoke virtual method 'void n3.d.j(int)' on a null object reference, null, null)
The app works great in debug mode but when I run it in release mode it gives me this error.
How do I resolve this issue in flutter?
private void InitDevice() {
UsbManager musbManager = (UsbManager)...
0
votes
3
answers
29
views
splash screen before webview loads in flutter
I am trying to build an app that uses webview but before loading it I need an splashscreen that checks if there is internet connection and if there isn't it shows an Snackbar in splashscreen. Do you ...
0
votes
0
answers
29
views
following is my code for stepper widget . now I need to jump at any step of it from any any step of the widget. how to achieve that? Below is my code
In below flutter code I have implemented stepper widget of 9 steps which are for the home agreement process. Now I have to do it for each document. Documents can be of any number 100 or 1000. when I ...
1
vote
0
answers
24
views
Displaying tick labels with google flutter charts
We are trying to display a year's (12 months) worth of data on a chart. It is close to working but the labeling of the month is weird. It seems like random months are labelled and some are not.
We ...
0
votes
0
answers
10
views
How to control the volume of different sounds separtely if they are playing at the same time ,through sliders in flutter. I tried the below code
I tried this code, but here I can change value of the slider separately but after this I am not able to figure out how can I control volume of different sounds at the same time,through different ...
-1
votes
2
answers
17
views
problem while creating checkbox on flutter
I have followed from the information provided, but this code still has an error (setState() is not detected, there is a red underline). Can someone help me in this case?
bool fpass = false;
...
0
votes
0
answers
12
views
Flutter Error Changes are not tracked, unable determine incremental changes
What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
Changes are not tracked, unable determine incremental changes.
0
votes
1
answer
30
views
My Apk size getting much large after upgrading flutter to latest
Im building an apk and the size is too large bcz i just created a ui till now and the size is 49mb there is huge differnece .
in this image the upper apk size is 22mb which build is created 7months ...
0
votes
0
answers
11
views
How to enable inlay hints in Visual Studio Code Like JetBrains code editors in Flutter?
So, I want this kind feature in Jetbrains code editors activated in Visual Studio Code
Enabled something like this in settings.json
but, nothing changed at all
How to enable inlay hints VS Code?
0
votes
0
answers
18
views
Flutter : How to implement multi-user authentication & profile using Provider
Most of tutorials only teaches you to put the User Provider on top global level
Widget build(BuildContext context) {
return StreamProvider<User>(
initialData: User.initial(),
...
1
vote
1
answer
33
views
The client_secret Provided does not match any associated PaymentIntent on this account
I'm trying to use flutter_stripe for a stripe connect account, But I always get the
same error: The client_secret provided doesn't match the client_secret associated with the PaymentIntend.
I've ...
0
votes
0
answers
18
views
How to fix ImageException:Only single frame JPEGS supported in flutter when building a mqttclient to view captured images?
I am trying to build a flutter application as a mqtt client to view captured images using ESP32cam. I have used Pubsubclient.h library to publish images from esp32cam to mqtt broker and it is ...
0
votes
0
answers
25
views
Flutter iOS screen height
The flutter app on iOS is not taking full height on any iPhone device both physical and simulated. It works normal on any Android device.
Any thoughts?
Thank you
0
votes
1
answer
19
views
How to add another text below "pomodone" using flutter?
I want this in my website:
But, for now, I have this:
This is my code:
import 'package:braintrinig/pages/log_in.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';...
1
vote
1
answer
26
views
Call a function whenever there is a change in Flutter
how can I call a function whenever there is a change in TextFormField .
I have many of them and it's more like an invoice.
So whenever the user changes a value, I need to make some mathematical ...
0
votes
1
answer
23
views
how to update location on map using geolocator in flutter
I would like to change the location of the blue mark on Google Maps to another location when a new address is selected. I have tried literally everything I could through trial and error but the mark ...
0
votes
0
answers
17
views
How to implement an editor and be able to keep state to edit it later in Flutter?
I already have an app that edit photos and let you put texts and other elements to it, but what I need to do is, save it to the device, so I can keep editing it later. It seems a little abstract, but ...
0
votes
0
answers
15
views
Firebase social login with Authorization Code Flow (Flutter Desktop)
What I want
I'm trying to implement an Authorization Code Flow (PKCE) for a Flutter desktop app.
My goal is just to get the token that return from OAuth2 Providers (Google, Facebook, Twitter)
What I ...
0
votes
1
answer
15
views
How to use dart:js and dart:html for a web and mobile code base? Conditional import?
I want to support running my app on mobile and on web, for the web version, I need to call a javascript library, therefore I call a method channel as follows
My app.js file:
function redirectToStripe(...
0
votes
1
answer
30
views
Can't build ipa for Flutter project [CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":]
I’ve spent days stuck on this. I’ve tried many flutter pub and pod commands but nothing works. I've also deleted the pods folder and re-added the firebase-ios-sdk.
I keep seeing this :
In Podfile:
...
0
votes
0
answers
9
views
How to store local changes in Flutter application before making changes in DGraph?
Background
Me: I am have used Python in an academic context for about 4 years and I am edging my way into app dev via Flutter. I have been working on learning Dart/Flutter for about a month, so I am ...
0
votes
1
answer
15
views
Flutter cannot use Google fonts in text
When I try to use google_fonts I get an error like this. I also imported the library and added " google_fonts: ^3.0.1" to the "pub.yml" file.
" I added.
void main() {
...
-1
votes
0
answers
14
views
how can i resolve this error SignatureDoesNotMatch
Hi guys am trying to upload image via using aws_s3_client in flutter. first time when i try to get all bucket it works fine but when i try to get content list from specific bucket then it throws ...
-3
votes
0
answers
20
views
Flutter create New project [closed]
Hello I have create New flutter project in Android studio and setup ld player emulator IT can run in Android project but in flutter project cannot run how I can solve this problem
1
vote
1
answer
39
views
Why most of the codes use Provider package and don't use GetX/Riverpod/Bloc?
I am learning Flutter. Most of the tutorials use Provider package but some others on Youtube use GetX. I searched about it and found that it seems there are another packages like Bloc, Riverpod, etc.
...
0
votes
1
answer
16
views
Using String Data With Shared Preferences
I have a login page and I want to save my username data with shared preferences and use it in my app. How can I do that? I couldn't figure out how to use the shared preferences.
0
votes
1
answer
20
views
mixing rtl with ltr flutter text
my "(" ")" get flipped when I try to write text with Hebrew (rtl).
I look up in the internet but its don't work for me like:
locale: const Locale('he', 'IL'),
...
0
votes
1
answer
19
views
Login with Facebook not working as expected - flutter
I'm trying to implement login with Facebook in my app which it's "working" but not necessarily as expected, I'll write down the issues I'm having.
When I try to login, I don't get ...
2
votes
1
answer
35
views
How can I position a FloatingActionButton spanning two widget in Flutter?
I trying to position a FloatingActionButton spanning two widget in flutter.
like this.
However, this is my app screen.
I can't stack the button on the center of two widget.
How can I solve my ...
0
votes
1
answer
33
views
Call a method on page pop
I'm pushing a new route like so in my app
Navigator.of(context)
.push<void>(
FilterTypesPage.routeFullScreen(context),
).then(
(value) {
log('PAGGGE ...