Learncado
Learncado

Learncado brings together a vast collection of questions and answers. Expand your knowledge, learn new skills, and find solutions to your queries effortlessly. Enhance your learning experience and save valuable time by exploring our website today.

Resources

  • Questions
  • Question By Tags

Help and support

  • Contact
  • About

  • Geniecourse
  • Jetsodeals
  • Rentcado
  • Dealcado
© 2021-2023 Learncado All Rights Reserved.

Search Results (157)

Results for dart

November 30th, 2023
How to Create an Independent Copy of a Nested Map with Dynamic Data in Flutter-Dart?

In my Flutter-Dart project, I have a map (myMap) that contains nested lists and maps, and these nested structures can further contain lists or maps. T...

dart
Read more
November 29th, 2023
Using assignment operators in Dart

void main() { var a=10; var b=2; var toplam=a+=b; var fark=a-=b; var carpim=a*=b; var bolme=a/=b; print("$toplam"); print("$fark"); ...

dartvariable-assignmentoperators
Read more
November 30th, 2023
async keyword Future<dynamic> problem in flutter/dart . I just want to know how the code is generating an error here below

I dont know what is happening in this portion of code: Future fnct() { print("inside fnct()"); return Future.delayed(Duration(seconds:4),()=>"hell...

androidflutterdartasynchronousfuture
Read more
November 23rd, 2023
How to filter all values in JSON object in dart / flutter?

I am trying to implement a search function where I search through all values in a JSON object without knowing the keys beforehand. It goes something l...

flutterdart
Read more
November 17th, 2023
How do i add values together in a user defined object list dart?

List myProducts = []; I have made a list builder so that with every product clicked it is added to the list myProducts.add(Product( ...

dartkotlin
Read more
November 18th, 2023
Easy localization package translation is not working in Bottom Naviagtion Bar items label flutter dart

here below code of main screen class that contains bottom Navigation Bar items , my issue is except this bottom nav bar labels all other strings trans...

flutterdartlocalizationinternationalizationflutter-easy-localization
Read more
November 16th, 2023
Dart Generic type not inferred correctly

In the code below, I am expecting an error at await postApi(payload, api); because payload should be an instance of Foo not String but Dart does not ...

flutterdart
Read more
November 16th, 2023
Why does Dart not allow partial Records?

I have the following little dart 3 example, which has the error at the comment. I would like to understand the rationale behind this. Why is this not ...

dart
Read more
November 13th, 2023
Dart json.Encode adds a spurious bracket pair

The following Dart code produces ({"date_required":null}) which looks to me like the outside bracket pair is incorrect and my go API rejects it with a...

dart
Read more
November 12th, 2023
How to properly add request fields to a Dart MultipartRequest

I have a flutter app in which I normally use http request post from a model to a go API like this. if (dateRequired != null) { data['date_required']...

flutterdart
Read more
November 8th, 2023
Dart: How to check the type of a sometimes nullable generic type?

Given the following dart 3 snippet, is it possible to match against A being nullable in the switch clause, and to find out which kind of nullable A is...

flutterdartgenericstypecheckingnullable
Read more
November 8th, 2023
how to do rsa encryption using publicKey.xml file in flutter dart , i am getting issue FormatException: Could not parse BigInt

RSAKeyValue>Modulus>D4ZblrI8NsZgnZOQbHJuEv7Lg0pCOuhwmGIS10rwlJ9Z/hGbes=Modulus>Exponent>ABCDExponent>P>86TWhp553PrrlQ/xdOpGDbGy8/h3/5vg+P==P>Q>D33zQmG...

c#fluttercryptographypublic-key-encryptionpointycastle
Read more
November 4th, 2023
Flutter build error: 'dart:js_interop' is not available on this platform

When I try to build my flutter project: flutter build apk --debug --> I get the following error: lib/screens/ListPage.dart:1:8: Error: Dart library 'd...

androidfluttervisual-studio-codedartlinux
Read more
November 12th, 2023
Can we add a null value to a StreamController? (Flutter, Dart)

I want to add a null value to a stream, but it will show an error. When I do: final StreamController?> streamController = StreamController?>.broadcast...

flutterdartstreamstreamcontroller
Read more
October 28th, 2023
How to distinguish the class member from global variable with the same name in Dart?

I am trying the following code: String user() { return ""; } class Foo { String user; Foo() : user = user(); // } void main() {} But it doesn...

dartclassglobal-variablesglobalambiguous-grammar
Read more
October 26th, 2023
Flutter / Dart: Calling a method without double-dots (..)

Can i write the following code differently, without using "double-dots" for calling a method: @override Widget build(BuildContext context) { ret...

flutterdart
Read more
October 24th, 2023
Dart null safety block me even without dependencies

Intro I have new project. I have pub.spec generated by Android studio official flutter plugin. Nothing manually added / changed in config. Problem Whe...

dart
Read more
October 19th, 2023
Future Function in dart return value

What I am doing is I want to display the elevated button as either red or blue depending on the boolean value. The boolean value will get its value fr...

flutterdart
Read more
October 28th, 2023
Is there a way to make a search function make an api call to return a list and go to a results page in dart?

I'm trying to make a book app and am trying to make a search bar that will append what I typed into a URL and perform a get. I am struggling to get th...

flutterdartdart-html
Read more
October 17th, 2023
API request to fetch conversation and messages in flutter dart

I'm working with APIs on an App to get the User information and in another tab to get the conversation of that particular user and the messages thread...

flutterdarthttprequest
Read more
October 1st, 2023
How to make Dart files break one line per parameter in VsCode?

I am learning Flutter/Dart, and in the video series I am following, there is only one parameter per line, as follows: body: Container( width: ...

fluttervisual-studio-codedarteditoride
Read more
September 29th, 2023
Dart: Iterable Extension to Remove an item

I'm creating an Iterable extension in dart to mimick most of the methods of List. However, when trying to remove an item from an iterable, I sometimes...

flutterdart
Read more
September 28th, 2023
Undefined variables in Dart / Flutter

I was trying to code widgets, that I could use at any time again. So I created a template for a textbutton and of course I am working with variables f...

flutterdartvariablesundefined
Read more
September 19th, 2023
How do I resolve dart pub publish vs github pages doc directories conflict?

To publish to GitHub pages, documentation must be in either the repository's root directory (/) or in docs. The standard directory location for dart d...

dartgithub-pagesdart-pub
Read more
September 16th, 2023
Handling errors in void Dart function marked async

I am designing an API and would like to handle a situation when a user marks a void function async by mistake. The simplified code is listed below: vo...

dartasync-awaiterror-handlingvoidtry-catch
Read more

Hot Topic

  • 25881

    How do I undo the most recent local commits in Git?

  • 11618

    How can I remove a specific item from an array in JavaScript?

  • 20343

    How do I delete a Git branch locally and remotely?

  • 7387

    How can I find all files containing a specific text (string) on Linux?

  • 7330

    How to find all files containing specific text (string) on Linux?

  • 7611

    How do I revert a Git repository to a previous commit?

  • 2671

    How do I create an HTML button that acts like a link?

  • 8481

    How do I check out a remote Git branch?