Click here to Skip to main content
15,389,668 members
Everything / Programming Languages / Dart

Dart

Dart

Great Reads

by Manish Dubeyy
How to debug the design time errors in WPF XAML file?
by Meshack Musundi
Implementing the MVVM pattern in Flutter using ScopedModel
by ThatsAlok
This is getting started beginner tutorial in DART 2, I would be touching Basic setup, Datatypes, Conditional Statements and Loops.
by ThatsAlok
In this second article of series, I would be focusing completely on List working

Latest Articles

by Meshack Musundi
Implementing the MVVM pattern in Flutter using ScopedModel
by ThatsAlok
Object Oriented Programming in DART
by ThatsAlok
Let's explore Flutter Grid view and MediaQuery
by ThatsAlok
Flutter ListView: A scrollable control for everyday need

All Articles

Sort by Score

Dart 

Please Sign up or sign in to vote.
20 Oct 2015
Manish Dubeyy
How to debug the design time errors in WPF XAML file?
Please Sign up or sign in to vote.
10 Oct 2018
Meshack Musundi
Implementing the MVVM pattern in Flutter using ScopedModel
Please Sign up or sign in to vote.
9 Jul 2018
ThatsAlok
This is getting started beginner tutorial in DART 2, I would be touching Basic setup, Datatypes, Conditional Statements and Loops.
Please Sign up or sign in to vote.
9 Jul 2018
ThatsAlok
In this second article of series, I would be focusing completely on List working
Please Sign up or sign in to vote.
9 Jul 2018
ThatsAlok
Let's explore the world of StateFulWidget with respect to Flutter
Please Sign up or sign in to vote.
14 Jul 2018
ThatsAlok
Map class denotes a key and value container. I will showcase its various methods and properties.
Please Sign up or sign in to vote.
18 Jul 2018
ThatsAlok
Flutter ListView: A scrollable control for everyday need
Please Sign up or sign in to vote.
21 Jul 2018
ThatsAlok
Let's explore Flutter Grid view and MediaQuery
Please Sign up or sign in to vote.
12 Jul 2018
ThatsAlok
Flutter Navigation, Let's move among pages
Please Sign up or sign in to vote.
31 Jul 2018
ThatsAlok
Object Oriented Programming in DART
Please Sign up or sign in to vote.
3 Jul 2020
F-ES Sitecore
Not using that package, no. It's a bad idea anyway, it will annoy users if you try and override their preferences.
Please Sign up or sign in to vote.
24 Mar 2021
Richard MacCutchan
If you are lost with Dart & Flutter, then maybe you need to start with something simpler. Try to get hold of a book on Python or C to get the fundamental ideas. Once you understand the concepts at the beginner level you can move on to the more...
Please Sign up or sign in to vote.
24 Mar 2021
OriginalGriff
You can't really separate "algorithms" from "coding", because they rely to a large extent on each other. In fact, there is a famous book about it: Algorithms Plus Data Structures Equals Programs (Prentice-Hall series in automatic computation):...
Please Sign up or sign in to vote.
24 Mar 2021
Patrice T
You have to know that you can do pretty much anything in any language, simply some languages are harder for beginners because there is more pitfalls to handle. You need to master a set of techniques that are the basis of the job and are not...
Please Sign up or sign in to vote.
30 Jan 2014
Hard Coder
1 alternative  
Has Dart (dartlang.org) got any future as a way of builing web applications?
Please Sign up or sign in to vote.
17 Oct 2018
Rajesh aptil
I am working on one Paint application wherein I am implementing BucketFill functionality similar to MS paint application. I have Coded it Using a couple of FloodFill Algorithms but the Filling Color Process is taking too much Time ...I am not pretty sure reasons behind it may happen due to the...
Please Sign up or sign in to vote.
3 Feb 2021
SuperMiQi
1 alternative  
Hello Everyone, I would like to retrieve from my flutter/dart project, the current system lqnguage code, like. fr, en, ... What I have tried: I have tried the following: Locale myLocale = Localizations.localeOf(context); String lc = currentLanguageCode(myLocale); print ("Language code:...
Please Sign up or sign in to vote.
26 May 2020
Member 14845028
I am building a flutter auction application, I am stuck at the countdown time of an auction product so I use firebase realtime database. I have to make sure all users see the countdown at the same time. Please help me whether it's just a keyword...
Please Sign up or sign in to vote.
22 Jun 2020
Member 14869963
1 alternative  
I am new to flutter and in my below code there is read data function is called at line 18(it performs Firebase Database operations) I want that the readData() function must complete its execution before going to the print statement(line 19) and...
Please Sign up or sign in to vote.
22 Jun 2020
Richard MacCutchan
Future readData() async { You have declared readData as an async activity, which means the the caller will not wait for it to finish. Remove the async keyword so that it runs synchronously.
Please Sign up or sign in to vote.
4 Feb 2021
Member 15063457
use didChangeDependencies method,the method is called after the initState is called and it gives you access to the context. Your code will look like this @override void didChangeDependencies() { Locale myLocale =...
Please Sign up or sign in to vote.
10 Mar 2021
Richard MacCutchan
Same answer as your previous question: What cross platform framework to use to build a children's educational app for mobile?[^]. Unless you have some programming skills you are unlikely to make any progress. The first thing you need to do is to...
Please Sign up or sign in to vote.
26 Mar 2021
Fynn Pfingsten
Hello, how to impenting detail layout in Flutter? I have build code which looks like this: import 'package:flutter/material.dart'; import 'package:flutter_slidable/flutter_slidable.dart'; void main() => runApp(MyApp()); class MyApp extends...
Please Sign up or sign in to vote.
27 Mar 2021
Salma Mohamed 2021
I am trying to run the default Flutter program and I get the following error. FAILURE: Build failed with an exception. * What went wrong: Unable to start the daemon process. This problem might be caused by incorrect configuration of the...
Please Sign up or sign in to vote.
3 May 2021
Md. Mubin
I am writing an application in Flutter. Is there any way to use/import Okular's document view functionality as a widget? If yes, how? Okular - The Universal PDF Reader[^] What I have tried: I have no idea to start. I have searched Google for...
Please Sign up or sign in to vote.
24 Mar 2021
Fix eg
3 alternatives  
i want to know what should i learn to be a real programmer. not just some one who made bad apps with mess code . what i need to learn before coding do i need to learn algorithms first or i need to learn coding with algorithms in the same time. ...
Please Sign up or sign in to vote.
8 May 2021
Md. Mubin
I am trying to call a native C function from Dart. I have made my C files, CMakeLists.txt and required Dart file. but when I run my code it shows: Execution failed for task ':flutter_plugin3:generateJsonModelDebug'. >...
Please Sign up or sign in to vote.
11 May 2021
Md. Mubin
1 alternative  
Is it possible to create dart wrapper for MuPdf? If yes, how? Thanks in advance. What I have tried: I am a beginner in Flutter and Dart. I have no idea to start with.
Please Sign up or sign in to vote.
11 May 2021
Richard MacCutchan
See Flutter - Beautiful native apps in record time[^]
Please Sign up or sign in to vote.
8 Jun 2021
Asif Rehman
Db db = new Db("mongodb://localhost:27017/whatever"); In C# I can connect using mongodb+srv://:@cluster0.k6lme.mongodb.net/myFirstDatabase?retryWrites=true&w=majority But in flutter mongo_dart package. Connection string ...
Please Sign up or sign in to vote.
18 Jun 2021
CSAAT ADMIN
1 alternative  
i have saved bunch of emojis as images locally, i want replace a specific text on the message as this emoji image. What I have tried: var replaced = text.replaceAll(regExp, '*'); Instead of the asterisk mark can we replace this with actual...
Please Sign up or sign in to vote.
18 Jun 2021
Richard MacCutchan
Yes, but only if the emoji is represented by a UTF sequence.
Please Sign up or sign in to vote.
24 Jun 2021
Richard MacCutchan
See Add Firebase to your Flutter app[^]
Please Sign up or sign in to vote.
30 Aug 2021
Dave Kreskowiak
Look at your main function. All you're doing is defining variables. That's it, nothing else. You're not calling any of your other functions in the code.
Please Sign up or sign in to vote.
27 Sep 2021
Richard MacCutchan
See Widget class - widgets library - Dart API[^]
Please Sign up or sign in to vote.
10 Oct 2021
_-_-_-me
1 alternative  
Here I did not typecast like we do in java, but I am getting correct output Why is that so? void main() { print(10/3); } output: 3.3333333333333335 What I have tried: I tried searching in google ..................................
Please Sign up or sign in to vote.
10 Oct 2021
Richard Deeming
The Dart division operator[^] works on double values. It has a different operator for integer division[^] if you want the same behaviour as Java. Only the language designers could tell you why it does that. At a guess, they saw how many people...
Please Sign up or sign in to vote.
2 Nov 2021
Kavya Bhargava
In this, I think I am getting errors at the navigators. If I comment both of them out the app runs fine(except the page change). The first navigator is giving this error when I comment it out .The second navigator is working but not as it is...
Please Sign up or sign in to vote.
22 Dec 2021
Member 10907325
1 alternative  
Hello i am loading json from local assets file and show in listview in my flutter app anyone know how to implement searchbar here is my code body: Container( child: Center( // Use future builder and...
Please Sign up or sign in to vote.
22 Dec 2021
Richard MacCutchan
Quote: i tried to search on google but no result found What did you search for? Look at this: flutter search bar example - Google Search[^].
Please Sign up or sign in to vote.
26 Dec 2021
Rafia Chowdhury
This is the instruction provided by them for a website: Include JavaScript 1. Start eye tracking GazeCloudAPI.StartEyeTracking() ; 2. Define your...
Please Sign up or sign in to vote.
29 Dec 2021
Abuabacarr Jobarteh
void main() { runApp(Covid_19_20AppApp()); } class Covid_19_20AppApp extends StatelessWidget { get generateRoute => null; @override Widget build(BuildContext context) { return MaterialApp( title: 'Covid-19', theme:...
Please Sign up or sign in to vote.
8 Jan 2022
Kavya Bhargava
1 alternative  
I am unable to assign my one class to another even though I have imported the lib for them. I am following a course . In this I will fetch the orders from firebase and showing the orderscreen. Orderscreen(where i am getting the error): import...
Please Sign up or sign in to vote.
8 Jan 2022
Dave Kreskowiak
The error is pretty explicit. You're calling a function is is expecting an array or list of OrderItem objects and you're passing in a single OrderItem object. Pass in an array of OrderItem objects, even if that array has only a single OrderItem...
Please Sign up or sign in to vote.
21 Jan 2022
Coding-Jutsu
So I've already had a problem with this code before and got some help to fix my error, but I have a new one. So basically I'm waiting for a variable and this variable is not null because when I print it, I can see the value of this variable. The...
Please Sign up or sign in to vote.
24 Jan 2022
JamesPiner
1 alternative  
Trying to sort my list of cards by the latitude and longitude I have set as fields in Firestore to the user's location in Flutter (by their latitude and longitude). Does anyone know how to do this? My code below in the sort function only reversed...
Please Sign up or sign in to vote.
26 Jan 2022
Member 15514073
My app screen does not change the state of it in real-time while updated in the firebase real-time database .. the earnings screen is updated after the driver ends the trip and collects the fares of the trip then updated total earnings and number...
Please Sign up or sign in to vote.
30 Jan 2014
Hard Coder
1 alternative  
Has Dart (dartlang.org) got any future as a way of builing web applications?
Please Sign up or sign in to vote.
17 Oct 2018
Rajesh aptil
I am working on one Paint application wherein I am implementing BucketFill functionality similar to MS paint application. I have Coded it Using a couple of FloodFill Algorithms but the Filling Color Process is taking too much Time ...I am not pretty sure reasons behind it may happen due to the...
Please Sign up or sign in to vote.
3 Feb 2021
SuperMiQi
1 alternative  
Hello Everyone, I would like to retrieve from my flutter/dart project, the current system lqnguage code, like. fr, en, ... What I have tried: I have tried the following: Locale myLocale = Localizations.localeOf(context); String lc = currentLanguageCode(myLocale); print ("Language code:...
Please Sign up or sign in to vote.
26 May 2020
Member 14845028
I am building a flutter auction application, I am stuck at the countdown time of an auction product so I use firebase realtime database. I have to make sure all users see the countdown at the same time. Please help me whether it's just a keyword...
Please Sign up or sign in to vote.
22 Jun 2020
Member 14869963
1 alternative  
I am new to flutter and in my below code there is read data function is called at line 18(it performs Firebase Database operations) I want that the readData() function must complete its execution before going to the print statement(line 19) and...
Please Sign up or sign in to vote.
22 Jun 2020
Richard MacCutchan
Future readData() async { You have declared readData as an async activity, which means the the caller will not wait for it to finish. Remove the async keyword so that it runs synchronously.
Please Sign up or sign in to vote.
4 Feb 2021
Member 15063457
use didChangeDependencies method,the method is called after the initState is called and it gives you access to the context. Your code will look like this @override void didChangeDependencies() { Locale myLocale =...
Please Sign up or sign in to vote.
10 Mar 2021
Richard MacCutchan
Same answer as your previous question: What cross platform framework to use to build a children's educational app for mobile?[^]. Unless you have some programming skills you are unlikely to make any progress. The first thing you need to do is to...
Please Sign up or sign in to vote.
26 Mar 2021
Fynn Pfingsten
Hello, how to impenting detail layout in Flutter? I have build code which looks like this: import 'package:flutter/material.dart'; import 'package:flutter_slidable/flutter_slidable.dart'; void main() => runApp(MyApp()); class MyApp extends...
Please Sign up or sign in to vote.
27 Mar 2021
Salma Mohamed 2021
I am trying to run the default Flutter program and I get the following error. FAILURE: Build failed with an exception. * What went wrong: Unable to start the daemon process. This problem might be caused by incorrect configuration of the...
Please Sign up or sign in to vote.
3 May 2021
Md. Mubin
I am writing an application in Flutter. Is there any way to use/import Okular's document view functionality as a widget? If yes, how? Okular - The Universal PDF Reader[^] What I have tried: I have no idea to start. I have searched Google for...
Please Sign up or sign in to vote.
24 Mar 2021
Fix eg
3 alternatives  
i want to know what should i learn to be a real programmer. not just some one who made bad apps with mess code . what i need to learn before coding do i need to learn algorithms first or i need to learn coding with algorithms in the same time. ...
Please Sign up or sign in to vote.
8 May 2021
Md. Mubin
I am trying to call a native C function from Dart. I have made my C files, CMakeLists.txt and required Dart file. but when I run my code it shows: Execution failed for task ':flutter_plugin3:generateJsonModelDebug'. >...
Please Sign up or sign in to vote.
11 May 2021
Md. Mubin
1 alternative  
Is it possible to create dart wrapper for MuPdf? If yes, how? Thanks in advance. What I have tried: I am a beginner in Flutter and Dart. I have no idea to start with.
Please Sign up or sign in to vote.
11 May 2021
Richard MacCutchan
See Flutter - Beautiful native apps in record time[^]
Please Sign up or sign in to vote.
8 Jun 2021
Asif Rehman
Db db = new Db("mongodb://localhost:27017/whatever"); In C# I can connect using mongodb+srv://:@cluster0.k6lme.mongodb.net/myFirstDatabase?retryWrites=true&w=majority But in flutter mongo_dart package. Connection string ...
Please Sign up or sign in to vote.
18 Jun 2021
CSAAT ADMIN
1 alternative  
i have saved bunch of emojis as images locally, i want replace a specific text on the message as this emoji image. What I have tried: var replaced = text.replaceAll(regExp, '*'); Instead of the asterisk mark can we replace this with actual...
Please Sign up or sign in to vote.
18 Jun 2021
Richard MacCutchan
Yes, but only if the emoji is represented by a UTF sequence.
Please Sign up or sign in to vote.
24 Jun 2021
Richard MacCutchan
See Add Firebase to your Flutter app[^]