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.

dart
0 votes
0 answers
8 views

Dartfrog websocket broadcast message

i was digging inside of dart_frog to know it capabilities , it sounds awesome until i've started using websocket , i've implemented it like this way final handler = webSocketHandler( (channel, ...
0 votes
0 answers
9 views

How To Insert query in Flutter with PostgreSQL new package? postgres: ^3.2.1

How To Insert query in Flutter with PostgreSQL new package? postgres: ^3.2.1 all the other documentation are old, deprecated and not working anymore, could you someone please help on this..? How to ...
Ismail Ibrahim's user avatar
1 vote
1 answer
17 views

Unable to pass required argument to parent class using super

After super method in the child class, I am unable to pass a parameter value to the parent class. void main() { MobilePhone mp = new MobilePhone(modelName: "7T", brandName: "...
Rajiv Iyer's user avatar
0 votes
0 answers
6 views

stop flutter_background_service when app is down (flutter)

Can't leave the background service. Give me a solution, please. service_background.dart: @pragma("vm:entry-point") Future<bool> onStart(ServiceInstance service) async { if (service ...
Pan Kaban's user avatar
0 votes
2 answers
23 views

when we run flutter code in development mode in physical device, does application live only in RAM

So when we Run code, by F5 in VS code, does that Application on physical device leave only on RAM? This question arise will using image_picker library on Handling MainActivity destruction , which say ...
Abhishek_Yadav's user avatar
0 votes
1 answer
23 views

Riverpod - share data between providers

What's the canonical way to share data between two providers created with riverpod? In addition those two providers might only be very loosely connected logically speaking... Let's assume we've got an ...
Vinci's user avatar
  • 1,480
1 vote
2 answers
31 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
30 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
25 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
1 answer
24 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
20 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
20 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
16 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
16 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
28 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

15 30 50 per page
1
2 3 4 5
6305