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.

0
votes
0answers
13 views

http requests with dart

I am trying to learn dart, experimenting with http requests from this blog. So I installed dart on Windows but for whatever reason I cant seem to run this script: import 'dart:html'; import 'dart:...
0
votes
0answers
19 views

how to Show Parsed Json in card Widget Flutter

I just entered the Flutter framework. And I'm new. And a problem with displaying information received from JSON, I was able to display the information on the console using the forEach but I could not ...
0
votes
0answers
11 views

How do I query a json key inside a json key with a http request in dart?

I have the following structure in my api return: "data": [ { "id": 1, "user_id": 3, "uni_id": 3, &...
0
votes
0answers
13 views

Multiple AnimationController in ListView.builder Flutter

I’m trying to send controller value (from parent page) to animate the animations in child page. the result that i expected is only one animation that’s been clicked being animated, but what i got is ...
0
votes
2answers
22 views

Widget doesn't change, although new state is called

I wanted to have a text, that changes every time one of the filter cards is selected/deselected. I made a global variable (I don't know what the best way to do that is but to me it seemed like it ...
0
votes
0answers
8 views

What is the best way to define Entity initializer for Objectbox entity in flutter?

I using Objectbox in flutter/dart (1,3,0) to build my datavase. I am trying to give initialization logic to my entity constructor. I would like the mandatory fields to be filled in constrcuteur and ...
0
votes
0answers
11 views

How initialize Objectbox entity with custom type?

I'm working with Objectbox (1.3.0) to build my database on Flutter. I try to create an entity composed of a custom type (enumeration) like this : type_enum.dart /// Type Enumeration. enum TypeEnum { ...
0
votes
0answers
13 views

Flutter image_picker strange behavior on iOS

I use the latest version of the image_picker(0.8.4+4) plugin. I have a few images saved to the Gallery from Unsplash. When I try to open one of them with the image_picker it just stuck. The ...
0
votes
0answers
21 views

Updating data from API

I have the following situation, I am fetching cryptocurrencies from API: class CryptocurrenciesBloc extends Bloc<CryptocurrenciesEvent, CryptocurrenciesState> { final ...
0
votes
2answers
36 views

Capitalize First Letter Of Each Name after Hyphen "-" and Space " "

I'm currently using this String extension to Capitalize the letter of each word in a textField : "happy sunshine" .toTitleCase() gives "Happy Sunshine" extension StringExtension ...
1
vote
0answers
11 views

'Flutter cubit error: Unhandled Exception: Bad state: Cannot emit new states after calling close' when rotating device

I am getting Flutter cubit error: Unhandled Exception: Bad state: Cannot emit new states after calling close' when rotating device. Is it likely because flutter rebuilds the state when device is ...
0
votes
0answers
6 views

flutter audio service not showing notification control on android 11

I am using audioservice with audioplayers. The notification and audio are playing properly on Android 9 on both real device and emulator. But when i check on newer android versions like android 11 on ...
1
vote
2answers
28 views

Which native programming language is Flutter's code compile to?

Using the Dart language allows Flutter to compile the source code ahead-of-time to native code. I want to know which native language is it compiled to for different platforms. Android- Is it Java or ...
0
votes
1answer
9 views

Shared preferences null (getstring) error in flutter

I am working on flutter project and I save data to shared preferences for later use.While calling shared preferences as tempData=sharedPreferences.getString('tempData'); it shows type error as ...
0
votes
0answers
8 views

Mock object not recognized as Mockito in Flutter widget test using GetIt

I am writing a widget test that verifies a logout button. When the logout function is triggered via a user button tap, some items in FlutterSecureStorage are cleared. I want to verify that a method ...

15 30 50 per page
1
2 3 4 5
4235