Skip to main content

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.

1 vote
2 answers
22 views

How to extract from a column or row, an list of their widgets?

I have a column, is it possible to extract from it the list of children that are in this widget? final listWidget = []; listWidget.add( Column(children: [ SizedBox(), ...
ReGeNs's user avatar
  • 23
0 votes
1 answer
23 views

Can't Install Flutter on Windows

I'm trying to install Flutter using VS code and it shows this error: What happened: Firstly, I had Flutter installed and worked fine. All projects build fine, and everything is going well. I tried to ...
Gamal Othman's user avatar
0 votes
1 answer
20 views

How to generate methods in `PerFieldToJson` using `json_serializable`?

Minimum reproducible code: // foo.dart import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore_odm/cloud_firestore_odm.dart'; import 'package:json_annotation/...
iDecode's user avatar
  • 27.3k
0 votes
0 answers
11 views

Flutter Web not Showing error Message Correctly

This is my Flutter app. void main() { Future.delayed(Duration.zero, () { throw "boom"; }); runApp(MaterialApp(home: Scaffold(body: Center(child: Text("Hello"))))); } ...
TSR's user avatar
  • 19.4k
0 votes
0 answers
13 views

I am running into an `Undefined symbol` issue with dart-ffi and Go

I am trying to use ffigen to develop a library that I can use to call a go package from dart code. My current approach is to use the basic setup that you get from running the initial ffigen flutter ...
Ojima Abraham's user avatar
0 votes
0 answers
16 views

Flutter , How to form a sentence from a words that broadcasted from a websocket

Im using a websocket to make a chatbot. This is a broadcast Stream WebSocketHelper(@Named('webSocketUrl') String url) : channel = IOWebSocketChannel.connect(url) { _broadcastStream = ...
Febin Johnson's user avatar
0 votes
0 answers
14 views

Unable to get real-time chat updates in Pusher Flutter

I've implemented a chat functionality on an app, however, I'm finding it difficult to get real-time chat updates, as well as updating UI with new messages. My Chat gets sent to the database but no ...
ComputerMaverick's user avatar
0 votes
0 answers
13 views

How to compile dart programs without Error: AOT compilation failed

When I run "dart compile exe D:\projects\dt\bin\dt.dart" it shows: Error: AOT compilation failed PathAccessException: Cannot open file, path = 'd:\projects\dt\bin\dt.exe' (OS Error: Access ...
Akshay Shahani's user avatar
0 votes
1 answer
27 views

How to upload image using dart http

I'm trying to create a photo upload feature using dart http. when I run the code but it fails to upload. this is my image picker pickImage(ImageSource source) async { final XFile? image = await ...
Ardabily's user avatar
0 votes
1 answer
20 views

Why the state is not persistent over screens of stateNotifierProvider of riverpod in flutter?

I am trying to persist the state of a form globally but what i am getting is the default value when i am navigating to another screen in the same project? i have found similar post here [https://...
Deepak Singh's user avatar
0 votes
0 answers
27 views

In dart does creating an isolate means using another thread?

Dart is a single-threaded language, and it offers isolates to do multi-threaded processing. I'm confused; does creating isolates mean that I'm really using another thread?
Yaser Hesham's user avatar
0 votes
0 answers
13 views

Flutter Plugin for Android not finding the "io" import (Kolin file highlighting broken) Android Studio

I'm trying to develop a android flutter plugin. The problem im encountering is that i cant't find a way to open up the android file that provides propper highlighting. The code in Kotlin works fine ...
Mar7en's user avatar
  • 1
1 vote
2 answers
27 views

How to efficiently manage state in a large-scale Flutter application?

I’m working on a large-scale Flutter application and I’m facing challenges with state management. I’ve tried using setState, but it quickly becomes unmanageable as the app grows. I’ve also ...
Anu D's user avatar
  • 13
0 votes
1 answer
49 views

Duplicate Notification is coming for flutter local notification when the app is in background mode. How to solve?

I have a dashboard screen where in the initState I am initializing the Firebase notification and local notification. When the app is foregrounded it's getting the local notification and getting the ...
Arnab Ghosh's user avatar
0 votes
0 answers
18 views

When I type flutter doctor it doesn't show me any thing, SDK version solving failed

when i want to pub get it show me this error , also when i wrote flutter doctor it does not show me any thing like itis loading or some thing Resolving dependencies... The current Dart SDK version is ...
asma's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
6305