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
7 views

allow unit date range selection for SfDateRangePicker on multiRange mode

I'm trying to use the SfDateRangePicker with selectionMode setted to DateRangePickerSelectionMode.multiRange and be able to select a interval that starts and ends on the same day (double tap on same ...
Lucas Sievers's user avatar
0 votes
2 answers
16 views

How do I display a scrollable list where it's grouped by two fields?

I have this data: [{ID: 0, Line: 100, Part: 00-87000088, Lots: 00865756,00866790,00868501,00871385,00871905,00872712,00875997,00878042}, {ID: 1, Line: 990000, Part: 00-87000001, Lots: 00746727,...
TheMortiestMorty's user avatar
0 votes
1 answer
16 views

keyboard is a part of my flutter app screen

my application is simply to add contacts using textfields and delete it but when i add more than 1 contact i find that the keyboard of the text field overflowed because of the other widgets so how can ...
Abdalhady Mohammed's user avatar
0 votes
1 answer
16 views

Multiple query on firebase documents in Flutter [duplicate]

I want to get docs in a specific range using the "level" field(e.g.: between level 5 and level 20). And then sort these docs by specific field(e.g.: price). so the "level" field ...
Turing's user avatar
  • 134
0 votes
0 answers
18 views

how to show notifications on phone devices with flutter

Hello every one I'm trying to build my own system for showing notifications in my flutter projects however, I want to achieve this without using FCM (Firebase Cloud Messaging) or any service like it, ...
mohammadmnyer's user avatar
2 votes
1 answer
16 views

What does `operator () { ... }` do in Dart?

Here is a simple dart class: class MyOperatorClass { int operator () { return 5; } } I noticed today that this compiles without any issues. This led me to wonder, what does operator ()...
Taylor Brown's user avatar
0 votes
0 answers
10 views

workmanager do no register periodic task after initial delay flutter

i am using workmanager 0.5.1 to register periodic task at 12:15am but after initial delay it does not register task. why this issue occurs? if i register without initial delay then it works fine. ...
Abdullah Shahzad's user avatar
0 votes
1 answer
13 views

When changing Raised Button to Elevated Button, creates an error on the button style

class _CalculatorState extends State<Calculator> { Widget calcbutton(String btntxt, Color btncolor, Color txtcolor) { return Container( child: RaisedButton( onPressed: () { ...
acevol's user avatar
  • 1
0 votes
0 answers
25 views

Custom formatting options for `dart format` [duplicate]

I want to use dart format to format dart code, but my team uses custom format rules – such as line length of 120 characters and a few other things. Currently, code is formatted using settings in the ...
Your Friend Ken's user avatar
-2 votes
0 answers
23 views

how i can create a function in flutter using graphQL to register a user in supabase platform?

the problem is specifically related to user registration using GraphQL on the Supabase platform, and you're seeking help to resolve it. this the function i use Future<void> registerEmployee( ...
leith inoubli's user avatar
0 votes
0 answers
13 views

add leading zeros to decimal point in flutter/dart

I want to add leading zeros to my double number in flutter but only if if number has one decimal point, example: user input => formatted value 3.4 => 3.04 3.40 => 3.4 (or 3.40, don't really ...
aleksander frnczak's user avatar
0 votes
0 answers
6 views

facing invalid session id while excecuting the webdriver two times in one scenario

I am trying to execute one scenario to test,in that I am executing webdriver two times but while execution of 2nd time of webdriver facing invalid session id issue. Following is the code - Scenario: ...
Preeti Maddi's user avatar
0 votes
0 answers
10 views

How to handle errors using Google Drive API in Flutter?

I am using googleapis: ^11.4.0 googleapis_auth: ^1.4.1 The API is: var result = await driveApi.files.create( driveFile, uploadMedia: media, ); How to handle errors? Like network connectivity ...
Michał Dobi Dobrzański's user avatar
-1 votes
0 answers
8 views

finding good advice and reliable source for dart programming

can someone suggest me the best way to learn systematic step by step programming from dart languange from basic fundamentals if possible refer me some good learning materials or reliable source to ...
Mico Tumbaga's user avatar
0 votes
1 answer
23 views

Custom Drawer with a Menu

I'm trying to create a Drawer that has a specific width, and when tapping on the icon it will change its color to red, and it'll open menu (list) of books the right side of Drawer the same line of the ...
Hamou Ouyaba's user avatar
0 votes
0 answers
32 views

flutter error: type 'String' is not a subtype of type 'int' of 'index'

I want to serialize data from json data using open api to Dart. However, the error continues, such as type 'String' is not a subtype of type 'int' of 'index'. I need to return the string, but I think ...
이유림's user avatar
0 votes
1 answer
40 views

E/flutter (10464): Error: HttpException: Connection closed before full header was received, uri = http:/

I am developing a flutter app connecting to a rest backend. When trying a POST request with data I get error Unhandled Exception: HttpException: Connection closed before full header was received, uri =...
Luis Alvarado Day's user avatar
1 vote
1 answer
47 views

How to add moving light overly on top of linear progress indicator - Flutter

I have linear progress indicators but i want add some "life" to them by adding gradient white color going from left to right and repeat, just like the following image : Linear Progress ...
sigma lab's user avatar
0 votes
0 answers
19 views

'scope' is not recognized as an internal or external command, operable program or batch file

Error Image Above Error occured when I tried running or building apk in flutter but this error occured. I tried Uninstalling and installing flutter, Android studio, .gradle, jdk and also I tried ...
Naresh Shrestha's user avatar
0 votes
0 answers
35 views

How to make gridview.builder expanded in flutter?

I have a GridView.builder I want to make all my grids fit on the screen without scrolling. I need to make it adaptive on all screens. Is there any way to do this? I have attached a picture of how it ...
st4tic's user avatar
  • 307
0 votes
1 answer
38 views

Dart: using named constructor on generic type in class template for deserializing multiple classes using a generic interface

I want to create several objects that are serializable to a Map and deserializable from a Map so I can deserialize an entire List of such objects in other functions and methods. This is meant to avoid ...
jarinox's user avatar
  • 45
0 votes
0 answers
13 views

How to open emoji section from keyboard

I have been searching for a package that provides me with emojis to add in my flutter chat app. I have tried the emoji picker package but it had so many bugs; for instance, if I pass the text editting ...
EgenSolve's user avatar
0 votes
0 answers
11 views

How can i pass an image from client to server in dart? I am using uno (for http request) and shelf_modular (for server) packages

I dont know how to pass images to the server (other types of data i do). Per example, the following function: Future<void> storeImage() async { final uno = locator.get<Uno>(); ...
Miguel Borges's user avatar
0 votes
0 answers
6 views

Upload image flutter web with dio formdata Error: Unsupported operation: MultipartFile is only supported where dart:io is available

I am trying using image_picker and dio packages to upload files as form data. This is for flutter web and it seems MultipartFile.fromFile is not accepted. What I tried is the following: Future<T?&...
Long's user avatar
  • 1
0 votes
0 answers
12 views

Why is my flutter BluetoothLE Advertiser not sending any packages? Everything seems fine but i cant detect the ad packets with my esp322

Here is my main.dart Code: import 'dart:developer'; import 'package:flutter/material.dart'; import 'package:beacon_broadcast/beacon_broadcast.dart'; import 'package:permission_handler/...
Richty lul's user avatar
0 votes
0 answers
7 views

getInitialAppLink from app_links return null from Play Store - Flutter

I am using app_links for linking my App. If the app is already installed I am receiving the correct link from getInitialAppLink(). However if my app is not installed when I click on the link it opens ...
Avinash Kumar Upadhyay's user avatar
-1 votes
0 answers
10 views

Why i get always this error on terminal The provided routeBuilder must be a static function. for use navigator.restorablepush in flutter

I want to use Navigator.restorablePush method for restoring app navigation but always getting this error 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 4578 pos 12: '...
Abhishek Patel's user avatar
0 votes
0 answers
15 views

`flutter create` puts .pub-cache where a source file should be, and also put another one outside the project folder

I'm using Flutter v3.31.6 on an Apple Silicon Mac. I get all green checkmarks from flutter doctor, "No issues found". My shell has a FLUTTER_ROOT environment variable set to the flutter ...
tompark's user avatar
  • 638
0 votes
0 answers
12 views

How to get youtube playlist thumbnail url flutter

I am displaying a YouTube playlist in my app using youtube_explode_dart and I am able to get the playlist title author and all videos inside the playlist but while fetching the thumbnail URL of the ...
Neal's user avatar
  • 35
0 votes
0 answers
10 views

Command "textScaler" is not defined

i am currently on a Dart project with a friend and he used a lot the textScaler command. But my Dart does not know the command. I keep getting this message. The named parameter 'textScaler' isn't ...
Mawela's user avatar
  • 11
-2 votes
1 answer
33 views

Gradle can't catch exception

working in a test project (learning http), I made a function that should get the data from my server and it does it correctly, but I'm focused on learning, so I came up with an idea, what if it can't ...
FORGE096's user avatar
0 votes
1 answer
27 views

Flutter not a Firebase error even though I have set up a catch error

I've made a login and sign in page in flutter and while using firebase when I try to login it catches error fine but when I sign up or create a user with the same error handling, it fails to catch the ...
Blek Bomor's user avatar
0 votes
3 answers
58 views

flutter error - The argument type 'List<String>' can't be assigned to the parameter type 'List<Country>?'

I am a beginner in flutter, I am working on existing code. I use the intl_phone_field package | Flutter Package to validate a phone number depending on the country. However, the console shows me this ...
dibase's user avatar
  • 1
0 votes
0 answers
13 views

Flutter web loads as a white grey screen after token expired with an error {Uncaught TypeError: s.giM is not a function}

When I push the flutter web app to the host it works fine, but after I close the web browser without logging out and letting the log in token expire when I open it I always got redirected to the home ...
Flutter Beginner's user avatar
0 votes
1 answer
32 views

How to use positioned Widget in Stack Widget?

I want to get the screen like that(upper Image), But when I try to make it ,I just get this screen (below Image),I don't know how to get upper screen .Please help me. I think there is something wrong ...
Eain Hmun Khin's user avatar
0 votes
0 answers
21 views

Flutter: Why Getx not Working with deep links?

My Entire app depends on Getx Package, because I'm using MVC structer in my app, and Getx let me easy handle (controllers, middlewars, View, routes, theme, language, ...), But when I tried to add ...
vicko alan's user avatar
0 votes
0 answers
14 views

flutter VS code problem : Can't use Java 19 and Gradle 7.5 to import Gradle project android

for evry project i do on vs code this problem happens. it comes form android folder in flutter project files, but the program runs well and it has no affection on excution or build the app,and also ...
Abdalrahman Alaa eldin's user avatar
0 votes
0 answers
32 views

How do i add goal tracking circles in flutter?

Hey stackoverflow i'm trying to make 7 goal tracking circles at the bottom of my app, but my app only showing try visually loading circles. i tried everything but nothing seems to be working. import '...
Oussama's user avatar
  • 33
0 votes
1 answer
39 views

How can I get data from my class sent to my shopping cart

I am building a shopping cart for my app using Provider. I can now push data to my cart from my cart model using a list index. However, I'd like to connect information from a class that I've created ...
KRAP's user avatar
  • 1
1 vote
0 answers
18 views

show text of voice and record voice Simultaneous

I have problem , in my app I need to record voice and show text of it in screen simultaneous I show the text with speech to text package and record voice with record package but the show text of voice ...
Sobhan Ziaee's user avatar
0 votes
1 answer
41 views

I am trying to run this function in an isolate in flutter but cant make it work, always getting the same error

I want to get the PaletteGenetor via an isolate because it blocks my ui for a few ms/seconds. for now i am just trying a simple example to try to make it work but for now, unsuccessefully. @override ...
Miguel Borges's user avatar
0 votes
0 answers
23 views

Is there a good video or documentation that helps me learn about Null safety in Dart?

I started learning Dart this week and I got into some exercises. When I was writing some code I had a lot of errors about null safety and the operators ? and !. Is there a good video or documentation ...
Harris Marinos's user avatar
0 votes
1 answer
18 views

In flutter, how do I know who I sent text message to when I'm using share_plus library?

In flutter, how do I know who I sent text message to when I'm using share_plus library? I need the name of the text receiver and the phone number. Is this possible with share_plus? If it's not ...
Wayne Wang's user avatar
0 votes
0 answers
15 views

Multiple build operations failed. Flutter Android

I'm getting the error when opening the Android project from Flutter. Multiple build operations failed. Could not create task ':in_app_purchase_android:generateDebugUnitTestConfig'. Could not create ...
Alpit Panchal's user avatar
0 votes
0 answers
27 views

functions inside NotifierProvider class have many errors

I have a povider class that I am working on converting to riverpod 2.0. I have defined the User class which is the data model and the NotifierProvider class below. Inside the NotifierProvider class, I ...
LostTexan's user avatar
  • 467
0 votes
1 answer
33 views

Namespace not specified. Specify a namespace in the module's build file Flutter Android Studio

Suddenly I'm getting the namespace error in my flutter project. What went wrong: A problem occurred evaluating root project 'android'. A problem occurred configuring project ':app'. Could not create ...
Alpit Panchal's user avatar
-1 votes
0 answers
12 views

Index translation to another map in Dart

Consider s and v are basics strings Consider firstConj, secondConj, thirdConj basics Map<String, String> of length: 8 I am trying to access the thirdConj.value that is at the same index as ...
Manewow's user avatar
2 votes
1 answer
32 views

Flutter PopupMenuButton with dynamic items animation bug

I tried to create a PopupMenuButton with a dynamic list of items like so: import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:wideview/...
Nir Pikan's user avatar
1 vote
0 answers
36 views

How to serve a Flutter Web SPA with Fermyon Spin

I'm trying to serve a Flutter Web SPA with Fermyon Spin below are the steps I followed (besides flutter and fermyon installation) steps to reproduce create a static file server with fermyon spin new ...
Francesco Iapicca's user avatar
0 votes
0 answers
24 views

Flutter getApplicationDocumentsDirectory() not working as expected on Android but OK on iOS/iPadOS

Apologies for this long post but I have looked at all the other getApplicationDocumentsDirectory questions here and none of them seem to cover my problem and I hope that someone can help me to try and ...
Les's user avatar
  • 71

1
2 3 4 5
1822