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.
158,471
questions
0
votes
0
answers
2
views
Have data locally - Flutter
I'm trying to learn Flutter on my own and trying to build a chat app which is connected to the OpenAI api. It works fine, I can send messages and receive answers as well, but every time I close the ...
0
votes
0
answers
8
views
How Can I Cancel or Back the Screen of Android System Call Incoming with Flutter?
I'm building a app to make calls with Flutter, using the Flutter WebRTC and FlutterCallKitIncoming, but i have problem when the call of arrive is cancelled, i can't alert to FlutterCallKitIncoming for ...
0
votes
1
answer
7
views
How to add assets images in carousel_slider?
i am tring to add images in carousel flutter and i make a list of images from my assets but i am facing this error.
ArgumentError (Invalid argument(s): No host specified in URI file:///home/zr/...
0
votes
0
answers
3
views
Testing a flutter ios app running natively in MacOs
With the advent of Apple Silicon, it's possible to run iOS apps directly on MacOS computers. Just about any app in the AppStore can run on your laptop.
However, I can't work out how to test my iOS ...
0
votes
0
answers
10
views
Flutter grey screen on specific part of app in some devices
When building the apk in release mode and testing, this portion of code shows grey screen in some devices.
Any help appreciated.
Thanks in advance
This is the code :
productCategoryController....
0
votes
1
answer
12
views
Unhandled Exception: type 'bool' is not a subtype of type 'Uint8List?'
I am trying to get image from gallery list of images to userinfoPage for profile picture but it gives me the error
"Unhandled Exception: type 'bool' is not a subtype of type 'Uint8List?'
E/...
0
votes
1
answer
6
views
The method "showSnackBar" isn't defined for the type 'ScaffoldState'
I am revisiting an old code and it is giving me this error and I am not sure how to fix it..
void _showSuccessSnack() { final snackbar = SnackBar( content: Text( 'User $_username successfully ...
0
votes
1
answer
16
views
Flutter application neither shows an error nor works
I am writing a flutter application. I am preparing the login part right now. I created firebase authentication and integrated it into my project. I created a user in the firebase authentication an I ...
0
votes
0
answers
3
views
Build failed with an exception. pp:processDebugMainManifest
What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
Manifest merger failed with multiple errors, see logs
Flutter Clean
Flutter pub get
-1
votes
0
answers
19
views
Session variables not set
I was trying to pass the ?resend_code at the end of the my API end point url but getting this error.
This is my login.php file, please check it.
<?php
session_start();
header('Content-Type: ...
0
votes
0
answers
27
views
How to programmatically change the state of a stateful widget at run time?
I'm building a custom Flutter widget to support a grouped list of radio buttons, displayed as a group of buttons. Only one button can be selected in the group, and it is highlighted to show its ...
0
votes
0
answers
10
views
Reddit api only giving video and not its audio
I am using Reddit API to play videos on my app but the audio is not playing with the video.
This is my code. I am using chewie package and I have no idea if the problem is in the player or Reddit Api. ...
1
vote
3
answers
35
views
flutter make scrollable widget take remaining space in column widget
I have roughly the following code
Column(
getWidget1(),
getWidget2(),
// Expanded(
SingleChildScrollView(
child: Table(
children = manyRows()
)
// )
)
)
I'm aware ...
1
vote
0
answers
24
views
The Activity class declared in your AndroidManifest.xml is wrong or has not provided the correct FlutterEngine
i need to do audio in work in background
this the code
audio_handler file
import 'package:audio_service/audio_service.dart';
import 'package:just_audio/just_audio.dart';
Future<AudioHandler> ...
1
vote
1
answer
15
views
How to create a "Layer Blur" effect figma on circle shaped container in Flutter?
How to replicate Figma layer blur effect on a container with a circle shaped in Flutter?
I have a design in Figma that has a layer blur effect applied on a circle. Please refer to the image below for ...
1
vote
0
answers
9
views
i am building flutter ios archive and it shows below errors in xcode
Failed to package /Users/mindzita/Downloads/Exotic Massage App/exotic massage client.
error: ../../../.pub-cache/hosted/pub.dev/modal_bottom_sheet-2.0.1/lib/src/material_with_modal_page_route.dart:4:1:...
1
vote
0
answers
12
views
Flutter doctor Command shows "unable to confirm if Installed Windows versions is 10 or greater)
as shown above I have every thing correctly installed for Flutter v3.7.8 but the Flutter dotor command shows the message "Windows Version (Unable to confirm if installed Windows version is 10 or ...
1
vote
1
answer
25
views
errors in my first flutter project, null value on startup?
I'm trying to build my first flutter project. It's an initial view for selecting a user from a dropdown.
The idea is that, when a user is selected, a text should show a bit of info of this user and, ...
2
votes
1
answer
24
views
Is there any way to change textColor of label in SnackBarAction without changing inversePrimary of colorScheme?
The issue is in Flutter (Channel stable, 3.7.7). It is by default taking value of inversePrimary from colorScheme, and not getting overridden by either actionTextColor in Theme or textColor in the ...
1
vote
1
answer
33
views
how to create a container as (a horizontal rectangle) that is curved to the inside from the top side in flutter
what I am trying to achieve is what is shown in the first image :
what I have tried
Container(
width: Get.width,
height: Get.height * 0.6,
decoration: BoxDecoration(
...
-1
votes
0
answers
15
views
Flutter : How to implement 1 to 1 video call in flutter [closed]
I m found the 1 to 1 video call in My live project.
if anyone has a project or SDK please suggest me.
1
vote
4
answers
48
views
focused border not taking the whole container flutter
Here as shown the focused border is not taking the whole space. Can anybody explain why and fix it.
Here is the code of the TextField :
child: Padding(
padding: const EdgeInsets....
-1
votes
1
answer
23
views
How can I run the methods in an ordered way in my onPressed? [closed]
Hola soy principiante en Flutter es mi primera vez preguntando algo aqui.....Tengo un problema mi metodo existeregistro(); esta dentro de un onPressed y este se esta ejecutando despues de un print....
...
1
vote
1
answer
18
views
how can I update the values of sub collection and also values of collection in fire base, I attached image below for ref
[
I want to update the values in course collection[course] and also sub collection[sem], I stored the all values of [sem] subcollection in a list.
I don't know how to update the values
1
vote
0
answers
10
views
Flutter restoration doesn't restore nor save state?
Been looking into restoring previous application state in-case the application closes but the problem I'm having is that the values do not get restored.
I've tried copying and pasting the example for ...
1
vote
0
answers
10
views
flutter app exit before build while using webrtc
I'm working on a Flutter project that involves WebRTC functionality using the flutter-webrtc package. However, whenever I try to build the app, it crashes before even launching. I have tried running ...
2
votes
2
answers
24
views
Flutter - The Expand Icon is not working properly
I'm creating expandable data. I tried with the Expand icon widget. But the expand icon is not working properly. The button state is not changing.
Code:
bool _isExpanded = true;
Container(
...
1
vote
0
answers
14
views
flutter new project only contains flutter.create
I cant initialize a new flutter project properly on my laptop. When I clone repo in GitHub that already has flutter project, it runs without a problem in my laptop, but when I initialize a flutter ...
1
vote
0
answers
16
views
Flutter web is too slow to open tabs with table
I am writing a flutter web based app using tables with tabs, I have shortened my code just to show the issue,
The problem is if my tabs have tables in it, its too slow to open, how can i address this ...
0
votes
0
answers
8
views
flutter (23282): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] [closed]
find the solution of the error
1
vote
0
answers
10
views
flutter_widget_from_html and better_player incompatible issue
So I was trying to add flutter_widget_from_html and better_player together in my flutter app but they are incompatible with each other.
This was the error message:
C:\srcc\flutter\bin\flutter.bat --no-...
1
vote
0
answers
9
views
Mapbox tiles load slower in IOS
I am having issues with Mapbox tiles loading markedly slower on an IOS device compared to an Android device. The app has been developed with flutter.
I am not quite sure where to begin to attempt to ...
2
votes
1
answer
29
views
Fixing Incorrect use of ParentDataWidget in a Flutter Application
In my flutter screen I am trying to create a Card with title and below it iterate the data related to this title. I am currently getting the following error:
I/flutter ( 3496): Incorrect use of ...
1
vote
0
answers
28
views
Creating a custom dropdown using overlays in Flutter
I am trying to create a dropdown menu in Flutter without using the built-in components or any public packages. I want to use a TextField to detect clicks and create an overlay to show the Lists of ...
1
vote
0
answers
10
views
While running, i get this in my android monitor, it keeps expanding with no ends :
2
D/EGL_emulation( 4344): eglMakeCurrent: 0xa7b05720: ver 2 0 (tinfo 0xa7b03800)
2
D/EGL_emulation( 4344): eglMakeCurrent: 0xaf80cf60: ver 2 0 (tinfo 0x93bdd830)
D/EGL_emulation( 4344): eglMakeCurrent:...
0
votes
1
answer
24
views
Flutter TextField how to detect that the text field was unfocused but not submitted?
I want to use a TextField to allow the user to rename an item in the app. I would like for the new item name to be saved if the user presses the 'done' button on the keyboard but I would also like for ...
2
votes
1
answer
16
views
Flutter / Android not accessing file properly but web does
I have a file called final.csv, located in the assets folder of my flutter project. I have added the file to the pubspec.yaml file.
assets:
- assets/final.csv
When running the code with chrome ...
1
vote
1
answer
24
views
flutter firebase: streamBuilder search property returns different data
I have a date search app. However, when I click on a specific date it doesn't return the value I requested for. But when I search a date before the actual date it returns the actual date I queried.
...
1
vote
1
answer
19
views
How to update Flutter app from website changes
I am building a Flutter app and need for one section of it to be updated in real-time from a Live website when changes are made to a page. Most of the app will be hardcoded but I need one section to ...
1
vote
0
answers
18
views
How to completely reinstall cocoapods
After some weeks, I tried to recompile a Flutter project with target MacOS:
Created a new Android Studio project and imported the source - failed
Tried to delete cocoapods and reinstalled - failed
...
1
vote
1
answer
18
views
Flutter firebase: Create multiple collection
Is it possible to create a multiple documents in the same collection? If yes, how do you do that?
for example there is a main collection POST.
In this POST collection the user creates multiple posts.
...
2
votes
1
answer
13
views
Freezed+BLoc how to check the current state and the variables of an specific state from BLoc Listener
I'm trying to learn how to execute some code in a BLoC listener depending on the state and a code variable that's only present in the success state.
I would like to be able to tell if I'm on the ...
2
votes
1
answer
24
views
How can I solve: Cannot retrieve length of file, path = 'WindowFilePath/FileName.jpg'
First of all, the question is: can I transfer a file to an android application using the windows path?
Title Description:
I need to map an image to each product, I'm trying to do this as follows:
...
1
vote
1
answer
22
views
Flutter canvas draw raw points with different colors
I am trying to draw a lot of points to the screen quickly. I have created the following method.
void _paintPoints(Canvas canvas, List matrix, Size size) {
final width = size.width / matrix.length;
...
-3
votes
0
answers
19
views
How to create a floor plan in flutter? [closed]
I want to create a floor plan like shown in the image is using SVG a good idea with onTap event
-1
votes
0
answers
20
views
WHENEVER I RUN MY FLUTTER WEB APP I FACE THIS ERROR CMake Error at C:/program files
CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message):
The C++ ...
1
vote
0
answers
12
views
StickyGroupedListView Range Error: Not in inclusive range 0..1 : 2
I have made a chat app using stickygroupedlistview and back4app as api in flutter. I use FutureBuilder to retrieve the data and group by date and time. The messages are grouped by date and time with ...
1
vote
0
answers
13
views
How do I resolve the Firestore/Auth Emulator error [cloud_firestore/permission-denied] false for get at Line 5?
It looks like there is a problem with request.auth when I'm using the Firebase emulators. It seems that it is always null. I am assuming that the get referred to in the error corresponds to the read ...
0
votes
1
answer
25
views
Gridview.builder scrolling issue when using singlechildscroll view
I am using gridview.builder inside a column. And wrapping that column with singlechildscrollview. When I use singlechildscrollview it gives the following error
RenderBox was not laid out: ...
1
vote
0
answers
9
views
FAILURE: Build failed with an exception. A problem occurred evaluating root project 'android'
I was developing a project in Android Studio with Flutter, I received some error messages recommending that I update the version of flutter that I was using.
I did a flutter upgrade, but now when I ...