As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [dart]

Dart is a class-based, statically(& strongly)-typed programming language for building web and mobile applications. Dart compiles to modern JavaScript to run in the browser and compiles to native code to run on mobile platforms like Android and iOS. Dart also runs on the command-line for scripting and server-side apps.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How to catch errors with flutter grpc Interceptor

I try to implement authentication in flutter with grpc (with protobuf) and Interceptors. I'm now stuck on handling an expired accessToken, where I would like to refresh the token and refresh the token....
skyface753's user avatar
0 votes
1 answer
11 views

how can i get value instead of Instance of 'Future<String>'

I'm using flutter and I am trying to get a value from shared_preferences for firebase. i checked my cord doesn't work and uid was " Instance of 'Future' ". the solution i found was using ...
qwerty970728's user avatar
0 votes
2 answers
16 views

_TypeError (type 'Null' is not a subtype of type '() => void' of 'function result')

I am getting this error while debugging my flutter app , there is no error in my dart files but during debug I get this error . I am attaching my dart files here . main.dart import 'package:flutter/...
Divyang Tiwari's user avatar
0 votes
1 answer
5 views

Could not find a generator for route RouteSettings ("/tests", null) in the _WidgetsAppState

I created a route to move to another page, when the function is executed the content is still null, which part is wrong? I'm still just learning this main.dart code: import 'dart:async'; import '...
StressCodingCok's user avatar
0 votes
0 answers
16 views

How do I fix this this error with regards to debugging on a physical device (mobile phone)?

I'm run into error while debugging a project on my mobile phone (physical device). I'm using flutter stable release 3.10.2. The error is on the image below.
Achievers Tv's user avatar
0 votes
1 answer
13 views

How to Read a String from Console in Dart

I am new to Dart and was wondering if I am able to change the output of stdin.readLineSync() in the terminal. Here is an example of what I want: import "dart:io"; void main() { print(&...
Filipe Silva's user avatar
0 votes
0 answers
14 views

The named parameter 'queryParameters' is required, but there's no corresponding argument. Try adding the required argument

Please help me. Here A lot of these are the same problems I have been facing. There are mainly issues about - The named parameter' is required, but there's no corresponding argument. Problem message -...
Muhammad Arafat's user avatar
-2 votes
0 answers
7 views

Need dart code to let the user select route on map

I'm not a Flutter developer. but I generated a dart code on AI using one of my working example on web. which I tried to debug and test in Dartpad. so that I can help one of my colleague with the ...
Anil Parshi's user avatar
0 votes
0 answers
10 views

How to solve the problem with duplication when reading firestore data?

I have a customized screen .dart, in which I need to display a list of the firestore variable "testfield". The problem is that each document duplicates the configured screen with itself.dart,...
The DeSire's user avatar
1 vote
0 answers
9 views

How to deobfuscate Dart stacktrace from iOS crash log

My Flutter iOS app crashes on end-user. I have .crashpoint log, symbolicated the crashing thread and got this output: Thread 2 name: Thread 2 Crashed: 0 App ...
timukasr's user avatar
  • 135
0 votes
0 answers
16 views

Add border and text inside own button class

I have a problem. I want to add text below the Icon and I want to add a border with a background. How can I do that? I don't know how can I add a text inside the border with a background. What is the ...
Test's user avatar
  • 569
-1 votes
1 answer
14 views

How to add a video (not from youtube) to a flutter/dart app?

I've tried ways of doing it, but I really lack knowledge of flutter and I don't understand what people say in video and stuff, all I need is a video that's not from youtube, to be played in the app ...
نبيل سليمان's user avatar
0 votes
1 answer
21 views

TextFormFIeld only takes input on second tap and ignore input on first tap

**Context I am reading data from Firebase Firsestore subcollection, and am passing that to a page, which displays all the information as a customized tile. This tile on clicking gives us the ability ...
Sivagnanam Maheshwaran's user avatar
0 votes
0 answers
24 views

In Flutter, how to manage the number of screen instances?

I noticed when I ran the navigator observer that I'm building a huge stack of opened screens when I keep navigating between two screens. I researched the topic and the resources available aren't ...
Ibrahim Saleh's user avatar
0 votes
1 answer
13 views

Does Flutter have video players for all platforms (iOS, Android, Windows, Linux, MacOS)?

I have a problem. I need to show mp4 video from network for all possible platforms. I've used video_player, but it is doesn't work for desktop. I wanted to use media_kit, but it doesn't work out of ...
Dmitrii Proshutinskii's user avatar
1 vote
1 answer
23 views

Getting value of same TextEditingController rendered via list

I'm stuck at a problem: I have a method that has a few TextEditingController instances, and this method returns a widget, representing an object. It is rendered via a list, which means these ...
Salman Akbar's user avatar
0 votes
0 answers
9 views

SocketException when trying to access to a mysql docker container from shelf server container

Context I am trying to create a Dart server with the library shelf. I want it a bit scalable in order to get to production when my project will be ready. And to facilitate the production release, I ...
Mathieu's user avatar
  • 1,443
0 votes
0 answers
18 views

I want to create a calendar in flutter which on zoom in changes the view from month to week, on further zoom to day and also like wise zoom out

Zoom in zoom out in calendar view with flutter I try zoomable widget also interactive widget with gesturedetector widget. Basically i want to create it in such way that on zoom in it changes the view ...
Shubham Joshi's user avatar
0 votes
0 answers
12 views

Error : Gpu delegate not working with flutter

I am trying to run my model using GpuDelegate ,but when creating the interpreter it gives the error : Dart version : Dart SDK version: 2.19.6 (stable)Flutter version : Flutter 3.7.9 tflite_flutter: ^0....
Ayush Yadav's user avatar
-5 votes
0 answers
16 views

fl_query stable 1.0.0 for flutter [closed]

first thank you for your good package fl_query for flutter. I want to know when will you release the version 1.0.0 stable? right now it is on version 0.3.1 and last update was 8 month ago. and I ...
mahdi forughi's user avatar
0 votes
1 answer
23 views

Flutter: Highlight Current Page Number

In my bottomNavigationBar I would like to highlight the page number the user is on when scrolling through the pages of a book. This could be done by setting the backgroundcolor: _page == index ? color....
Hugo's user avatar
  • 1
1 vote
1 answer
22 views

instagram and facebook videos not downloading using flutter_downloader

I am making a flutter video download manager. I am using flutter_downloader plugin. But the problem being faced is that either video is not downloading or it is not playing if downloaded. Below is the ...
umair mudassar's user avatar
0 votes
0 answers
28 views

Drag selected text inside textfield

Someone faced the task, so that in a textfield the selected text could be moved inside the same textfield? Maybe there is some package for this? Or does anyone know how to write their own textfield? ...
Alex Sidenko's user avatar
0 votes
1 answer
25 views

How to implement the disposable pattern in Dart?

I know the disposable pattern from C#. However, I wonder a little bit on how it is implemented and used in Dart and Flutter. I saw it being used in Flutter like this: @override void dispose() { // ...
Thomas Weller's user avatar
0 votes
0 answers
32 views

Hi, I was learning about input in dart and i encountered The following issue

import 'dart:math'; import 'dart:io'; void main(){ print("What is your name: "); String username = stdin.readLineSync(); print("Good afternoon ${username}, How Can I help you?&...
Hani Jaafar's user avatar
0 votes
0 answers
26 views

How to select contact that fecth from API?

enter image description hereI have problem with this UI. Can you assist me to create this UI? I try but i can' custom it. please show me how to build this platform. How to select contact that fecth ...
Tinut Chan's user avatar
0 votes
0 answers
16 views

dispose() calls are failing in a simple login Flutter app using Navigator

I've developed a simple Flutter app with a login route and 2 routes which are accesed once the user has logged in, but I'm facing errors when the user logout. I've used Navigator and named routes. ...
MauroDiamantino's user avatar
0 votes
0 answers
16 views

Flutter (iOS/Android): Keep WebSocket Connection Alive in Background

I have a Flutter application in which it connects to the server using socket_io_client. The purpose of this connection is to listen to server messages about order requests which the clients place ...
user15344186's user avatar
0 votes
1 answer
25 views

flutter: which button from List<Widget> is pressed

I have List of TextButton and i dynamicly add and delete them. How to know which index of pressed button? I tried add a key but it doesnt seem to work, i always get -1 as an index. when i tried to use ...
Влад Солодов's user avatar
0 votes
1 answer
21 views

error in flutter due to lack of programs or incompatibility

good afternoon. First of all, before coming here, I investigated on my own, but I'm still stuck. You see, we have a project in which the other developer ran and it worked for him. But when I try I get ...
mauricio's user avatar
  • 182
0 votes
0 answers
19 views

How do I retain access to background microphone input in Flutter?

I'm building an app that includes an audio recorder which should be able to record background audio for an indefinite length of time. So far, I seemingly have this working on an Android API v26 ...
coolbrd's user avatar
0 votes
0 answers
19 views

Can't solve NullSafety to test a fromJson Factory

I'm giving a try on Flutter but having a hard time trying to follow TDD process giving Null Safety complexity. A made a simple test (below) for instantiating a Model but I keep getting like Null check ...
Pedro Brasil's user avatar
0 votes
1 answer
22 views

type 'Null' is not a subtype of type 'Future<Response>'

I'm having an issue Flutter unit tests and I've been running into this error for about two days now. I'm trying to write a test for an API call, Best practice demands that the response should be ...
Gabriel Abuka's user avatar
0 votes
1 answer
23 views

Flutter: Multiple Imports Use Same Class Argument

I have two imports, one that I wrote as a general theme for my app FlutterFlowTheme and one that imports the Image library (here). Both use the class Color, however, no matter how I rename the imports,...
Dennis Ashford's user avatar
0 votes
0 answers
18 views

How do I applied blurred backgrounds using DraggableScrollableSheet when user swipes up?

how do I apply backgrounds blur, only when user swipes up the DraggableScrollableSheet(), here is my current code... Stack( children: [ DraggableScrollableSheet( initialChildSize: 0.25, ...
xhanalexander's user avatar
0 votes
0 answers
13 views

A problem occurred evaluating project ':device_info_plus' (issue in flutter)

After updating the flutter version to 3.10.3 I have updated the package_info_plus pkg to 4.0.2 version. After this build is failing. the exact error showing is No signature of method: ...
Shahin Salim's user avatar
0 votes
0 answers
8 views

Continuously play generated PCM audio in Flutter

I have found a way to generate and play a finite snippet of PCM audio using the just_audio plugin. When the user clicks the button, one second of PCM audio is generated, appended to a WAV header, and ...
Yaakov Schectman's user avatar
0 votes
1 answer
20 views

creating an app that displays the name of the song that is being played in my spotify account

I want to create a basic app which displays the name of the song that is currently being played on my spotify account. I've created an app in my spotify developers portal to get the client id and ...
Ajay Kumar's user avatar
0 votes
1 answer
29 views

Flutter. Text inside the Text() doesnt get updated

I have a list of widgets and when i try to update Text inside of them, it just doesnt get updated for some reason. even when i add a new widget, rebuild and see this widget in Row (so it means screen ...
Влад Солодов's user avatar
0 votes
2 answers
38 views

Why is the provider constantly in a "loading" state, if I take off the word "const"?

I'm using a StreamProviderFamily `ref.watch(getReceitasRefeicaoProvider( const ReceitasParams( tipo: 'meat', maxPreco: 10000, minLikes: 0, ...
Pedro Diogo's user avatar
0 votes
1 answer
28 views

Position a widget relative to the parent height flutter

I have an image that I want to position at the parent height * .5, so for example if the parent height is 500, it should be at 250. The parent height IS DYNAMIC, so it is set by size.height * .3, or ...
Cidiko Andorem's user avatar
-1 votes
1 answer
40 views

Flutter I am trying to build app but I am facing this issue

The error seems to be of dat:html but I am not developing for either web or desktop. I am not able to fix this issue please help I dont remember what I have done before the error occured /C:/Users/...
Parvez Wadhvaniya's user avatar
0 votes
0 answers
18 views

Trying to call a Future<void> function() in onPressed option in Flutter

I am trying to show an Unity Ad when a button is pressed. I tried a few things but I can't fix it. Here are my code snippets: main.dart -> Align( alignment: Alignment....
Terrence Skill's user avatar
0 votes
0 answers
6 views

Stale files in my Flutter Objective-C iOS projects

I've been experiencing issues with stale files in my Objective-C iOS projects, even though I am running the latest version of Flutter. I'm not exactly sure when this problem began, but I first noticed ...
Kyle Lynch's user avatar
0 votes
0 answers
6 views

Track open connections/requests with httpClient in Flutter

How can I track if there are still open connections/requests when using HttpClient?
Dario Digregorio's user avatar
0 votes
0 answers
27 views

showDialog won't show up

I tried to create a managed user profile. I have been successful in retrieving the user info from the firestore. When I run the code using Pixel 3a emulator, the button that should have shown a ...
Jennie Kim's user avatar
0 votes
1 answer
16 views

How to detect if you are at the bottom page in flutter using webview?

Cant detect the scroll in webview enter image description hereCurrently this is my code. I tried to use the scrollcontroller and set the gesturerecognizer as VerticalDragGestureRecognizer if (...
Pajunar Edilberto Jr S's user avatar
0 votes
1 answer
38 views

How do I call the list of future variables?

It is necessary to read the collection, and the collection. One person said that you need to read them separately through Future.await. But my code throws an error. Please help me what needs to be ...
The DeSire's user avatar
0 votes
0 answers
18 views

Flutter navigation with animation don't work

the animation works only when I make a black but the previous page but when I push to the next page it does not work. Please what to do? i'm using flutter 3.10.0 Here is my code ...
Lucien's user avatar
  • 3
0 votes
1 answer
14 views

Set flutter textfield inside Listview and get the value of each textfield on submit

controller: List<TextEditingController> areaController = []; Code: Column( children: [ ListView.builder( shrinkWrap: true, itemCount: 5, itemBuilder: ...
Ravindra S. Patil's user avatar

1
2 3 4 5
1768