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.
flutter
178,426
questions
0
votes
0
answers
8
views
Is fingerprints biometric authentication supported in flutter web?
I'm building a web verification system with flutter. And it requires biometric data capturing like fingerprints, but the problem is no biometric (fingerprints) package support flutter web. Is there a ...
0
votes
0
answers
7
views
Refresh screen of bottom navigation bar according to the clicked one in Flutter
enter image description here
i want to refresh the screen of bottom navigation bar according to the item which is clicked.
here is part of my tabscreen code.
void _onTabTapped(int index) {
if (index ==...
0
votes
0
answers
8
views
go router don't route on deep link
I'm using go_router in flutter to handle deeplinks.
My issues is that I don't want to change the page when a deep link arrives but simply complete a Completer.
From what I can tell go_Router must ...
0
votes
0
answers
7
views
How to scroll down the child widgets of a Scaffold in Flutter?
What I am trying to achieve:
Create a floating button on the screen. When user clicks on it, make a screenshot, then try to scroll down on the page and any scrollable widget in the view port, one by ...
0
votes
0
answers
7
views
flutter deep links not working with go router
I'm using go router in my flutter app to respond to deeplinks.
The flutter dev tool tells me that my deeplink are valid and when I run adb to manually activate a deep link i see:
adb shell am start -a ...
-1
votes
0
answers
12
views
Flutter and dart board eating all ram and make windows crash [closed]
I have the latest flutter and dart version on my system, I don't know when the problem get started, but recently for every command related to flutter and dart, vscode or command prompt or dart.exe ...
1
vote
0
answers
23
views
The getter 'MyRoutes' isn't defined for the class 'MyApp'
I have two screens in my app 1. homepage 2. loginpage and I want to navigate from login page to homepage on a button click through routes.
the routes are define in separate file utils(folder)=>...
0
votes
1
answer
16
views
CSV data is not showing up on my Flutter app screen
I am trying to build a Myntra fashion app in Flutter using a CSV dataset.
This is my code:
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter_spinkit/flutter_spinkit....
0
votes
0
answers
23
views
The second futurebuilder gives anomalous behaviour, but why?
I work on a search screen page where the first futurebuilder is responsible for showing all usernames and profilepic when searching by username, and the second futurebuilder is responsible for showing ...
-4
votes
0
answers
15
views
Eror saat menjalankan aplikasi [closed]
Ini erornya dimana
Saya sudah mencoba berulanh kali saya mengambil data dari mysql, lalu saya jalan muncul eror GED_GPU
Tolong bantu saya,saya sangat bingung karna saya pemula tidak tau apa yg harus ...
0
votes
2
answers
31
views
PopScope does not quit the app and only returns blank screen
Using PopScope to make sure that the user need to press back button twice to quit the app. The issue is after the back button pressed twice, it only returns blank screen or empty screen instead of ...
-1
votes
0
answers
21
views
How to Code an Android Studio QR Code Creator [closed]
I am building an app in android studio and flutter that is like a Ticketmaster app where customers buy tickets and I email them a QR code, or they can get a QR code in the app. I am having trouble ...
0
votes
0
answers
13
views
Flutter Deferred Component error on adding com.google.android.play:core:1.8.0: failing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
I am trying to add deferred components in my flutter projects by following this doc here
The first mentions to add this dependency implementation "com.google.android.play:core:1.8.0" in my ...
1
vote
2
answers
24
views
_TypeError (type 'List<dynamic>' is not a subtype of type 'List<int?>') Flutter
I'm using the json decoder on a List<List<int?>> json, and I'm having trouble converting the List<dynamic> to the List<List<int?>> I'd like to end up with. Is there a ...
0
votes
0
answers
10
views
Flutter application crashes on iOS devices due to audio_players darwin plugin
I am currently facing an issue regarding my Flutter application. It is currently working fine on Android and all the relative devices but I have a problem with iOS simulators.
The log that I am ...
0
votes
0
answers
7
views
Flutter hive package - hiveerror: this object is currently not in a box
For user of my app the following error with the hive package occured
"hiveerror: this object is currently not in a box."
when trying to save a hivetype object via save() method. The error ...
0
votes
0
answers
12
views
How To Update Stock/Display Photos in Android Studio App Dynamically Via Cloud/AWS/Firebase
I am building a mobile app on Android Studio and Flutter. I am using AWS Amplify for S3 storage and authentication. Right now all my photos in my app are native/embedded in the code/layout. I want my ...
-1
votes
0
answers
11
views
Unable to load contents of file list only in AndroidStudio and not in Xcode
I have a problem with my Flutter project. If I start the project through Xcode by doing the various clean commands like pod deintegrate and flutter clean, it starts correctly. However, if I do the ...
0
votes
0
answers
7
views
Do Push Notifications make Websockets obsolete for a chat app with Flutter?
I've currently configured FCM to use push notifications within my flutter app for both iOS and Android. The website of the concerned app uses a chat app that uses polling to simulate real-time ...
-1
votes
1
answer
12
views
CocoaPods Error: Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
I am encountering an issue while trying to run pod install for my Flutter project on an iPhone 15 Pro simulator. The error message indicates a problem with Unicode Normalization for ASCII-8BIT ...
1
vote
0
answers
23
views
Light Grey looks Greenish in Flutter
As you can see in the two image provided, light grey looks greenish despite reading a value of #F6F6F6 , then it looks normal after changing the scaffold background to White.
Are Flutter Widgets ...
-2
votes
0
answers
19
views
How can we manage block in chat app like whatsapp, [closed]
How can we manage block in chat app like whatsapp, if one user block other user, other user still message but can't deliver to other user. And most importantly how they manage last message and last ...
0
votes
0
answers
10
views
Flutter doctor error : Windows Version (the doctor check crashed)
I am facing this issue after running flutter doctor command:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631....
0
votes
0
answers
9
views
Back Gesture Minimizes Flutter App Instead of Navigating to Custom Function with GoRouter Flutter
I'm developing a Flutter application (this is my first flutter project - I'm a beginner) where users can create and manage notes. In the CreateNote screen, I want to override the back gesture so that ...
0
votes
1
answer
20
views
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. [Flutter]
I keep getting an error while trying to run a flutter project on android studio, the project runs fine previously on same machine but now raises error after a fresh format of the pc and android studio ...
0
votes
0
answers
11
views
Flutter and MySQL => JSON or PubDev packages
I realized that it is possible to integrate Flutter with MySQL in at least two ways: 1. Using JSON; or 2. Plug ins like MySQL1 or MySQL_client.
Knowing this, suddenly It just came me up two questions ...
0
votes
0
answers
7
views
Error finding printers: MissingPluginException
flutter: Error finding printers: MissingPluginException(No implementation found for method listDevices on channel usb_serial)
why this error ?
i write code test show devices
Future<void> ...
0
votes
0
answers
24
views
align widgets across columns with flutter
How can I achieve a view like below?
The part that I am interested in is the part with the time line. Basically I want the following:
16:03. origin icon Barbarossaplatz
|
|...
0
votes
0
answers
15
views
How can I change contents of DataTable with setState
I have a problem. I am beginner for Flutter. I am making a share app and when I add a new share, it doesn't appear on DataTable. Here is my main page and share adding page code;
MainPage
class MyApp ...
0
votes
0
answers
10
views
Change Msix family package name?
I'm trying to update my microsoft store app and I keep getting this error. Does anyone know how to edit the package family name in a flutter project on android studio? Also, my CN= is the same in my ...
0
votes
0
answers
19
views
InteractiveViewer scaled view center
I'm trying to get the center of a scaled view in InteractiveViewer. I know how to get the focal point because it is included in the onInteractionUpdate event data, but I'm not sure how to get or ...
0
votes
1
answer
11
views
flutter installation error ENV path powershell.exe
[4:27:20 PM] [General] [Info] Flutter is not initialized, running 'flutter doctor' to force...
[4:27:20 PM] [General] [Info] (PROC 14560) Logging data for process...
[4:27:21 PM] [General] [Info] (...
0
votes
2
answers
40
views
Can't call onTap function
It always appears error below when I run the code. Could anyone give an advice? Thanks.
Error: Not a constant expression.
page.dart
MyButton(text: 'Get Started',onTap: (){Navigator.pushNamed(context,'/...
0
votes
1
answer
24
views
How to remove previous route in Flutter?
I have a simple code.
routes: {
'/' : (context) => KartSelectorScreen(onKartSelected: _updateKartNumber, karts: karts),
'/car_info': (context) => KartInfoScreen(currentKart: ...
0
votes
0
answers
15
views
How can I keep cookie api call
I'm trying to always keep my cookies on my session with flutter. But once call works fine and the cookie is present but when I call again my class api call the cookie is reset.
How Can I solve this ...
0
votes
0
answers
14
views
Pageview: Disabling and enabling pageview scroll
I have a condition which I want to disable my pageview scroll while my splash screen is loading. I dont want to use native splash screen etc because I need my splash screen persist until my data is ...
0
votes
2
answers
43
views
How to navigate inside initState() in Flutter
@override
void initState() {
final Future<bool> is_initialized = IsInitialized();
if (is_initialized == false) {
GenerateDefaultPreferences();
Navigator.push(context, MaterialPageRoute(...
0
votes
0
answers
17
views
Flutter converting time to local
Using flutter, I have a date string :
2024-07-13T09:30:00.000Z
I am in UK, so this time should be 10:30
Using
DateTime dateTime = DateTime.parse(event['date']).toLocal();
is still returning 09:30 ...
0
votes
0
answers
12
views
In Android emulator in the extended control section Google Maps is not showing, only an empty screen appears. How to fix?
I have an Android emulator with the below specified configuration. The issue what is happening is whenever I try to open the extended controls in the location tab the map is not showing, instead it's ...
0
votes
0
answers
12
views
Amplify Flutter "handleWebUISignInResponse is not supported" error after Google Sign In
Error java.lang.IllegalStateException: handleWebUISignInResponse is not supported is thrown after a successful Google login to my Amplify app using the AmplifyAuthCognito web view. This causes the app ...
0
votes
0
answers
41
views
type 'Null' is not a subtype of type 'String how to solve this problem [closed]
NoSuchMethodError: Class 'List' has no instance method 'Map'.
Receiver: Instance(length:0) of '_GrowableList'
Tried calling: Map(Closure: (dynamic) => Map<String, dynamic>)
you may look here
...
0
votes
2
answers
43
views
how to write a URL path that has an additional path in it
I have 2 class models, the first class is for displaying a list of banks while the second is for displaying a description of the bank list. The two classes will be called with 2 different URLs using ...
0
votes
1
answer
19
views
Exception has occurred. (dependOnInheritedWidgetOfExactType<_ScaffoldMessengerScope>()was called before _AccountPageState.initState() completed
**Every time I open a specific page on my App this error shows up: **
Exception has occurred.
FlutterError (dependOnInheritedWidgetOfExactType<_ScaffoldMessengerScope>() or ...
0
votes
0
answers
21
views
how to combine 2 API response in flutter?
i want to combine 2 api result in infinite scroll pagination, the first api (wi) is successfully displayed in the UI, but the second api (exprenprod) displayed only data from page 1, how to fetch all ...
1
vote
1
answer
27
views
Failed to build apk in flutter project
when i want to buil my apk by using flutter build apk i get the following error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:...
0
votes
0
answers
30
views
Firebase google sign in OAuth - [firebase_auth/invalid-credential] access_token audience is not for this project -Flutter
I am creating google sign-in OAuth for my flutter app, First I created a Firebase project with 2 android apps (Members app and admins app) which is having same SHA keys which I figured out later. It ...
0
votes
0
answers
5
views
Flutter Ios Push Notifications
I have implemented Firebase notifications in my Flutter app, and they work fine on Android, but I can't get them working on iOS.
I've tried creating and applying certificates, but it still doesn't ...
0
votes
0
answers
16
views
Missing mandatory Classpath entries. Resolve Project Problems. flutter
error image
extension being used java version image
I wanted to follow this tutorial: https://docs.flutter.dev/platform-integration/platform-channels
i create a project with the command: flutter ...
-1
votes
0
answers
14
views
How to identify -Xlint:deprecation in flutter using VScode
I have this project I'm working on in flutter, and it's already finished just cleaning up some code and re-writing some lines, then I encountered this problem of depricated API, I know that the ...
0
votes
0
answers
8
views
Translation of Dynamic Data (e.g., User Names, Addresses) in Flutter
I am currently working on a Flutter application that requires localization for dynamic data such as user name and address typing. I used a translator package to implement the localization. However, ...