Click here to Skip to main content
15,888,286 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 Updated

Dart 

10 Oct 2021 by _-_-_-me
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 ..................................
23 Jun 2022 by Abim Joshi
I am receiving notification on all state(foreground, background(on-Paused), terminated(on-Detached)) but it's redirecting me to the intended url only in(foreground and terminated state). Surprisingly, on receiving notification during foreground...
12 Oct 2022 by abimjoshi7
I am working with an expansion tile in a flutter that shows user information in an irregular hierarchical order. I am optimizing the code to increase the performance of the expansion tile widget. Unit-III hierarchy differs from the rest and I am...
29 Dec 2021 by 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:...
15 Mar 2023 by Alva Rizky
On this code, i try to create Delete features, which is can delete history/data that already added. Here's the code : menuOption(String value, History history) async { if (value == 'update') { Get.to(() => UpdateHistoryPage( ...
22 Feb 2022 by Andre Oosthuizen
Looks like you have set the color for navigation bar and button to the same color - color: Color.fromARGB(255, 55, 126, 185), buttonBackgroundColor: Color.fromARGB(255, 55, 126, 185),
10 Mar 2024 by Andre Oosthuizen
Quote: Thanks for your response. I asked this question in more detail on stackoverflow. Unfortunately I will not be visiting StackOverflow to view your question, I doubt i if anyone else would. Please give full detail here by using the Improve...
12 Jun 2023 by Aryaveer Chaudhary
I am writing a federated plugin in Flutter but acc to url_launcher . I have to create app_facing_package, platform_package and platform_interface_package but I don't know what to write in these packages What I have tried: in docs, there is a...
8 Jun 2021 by 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 ...
21 Jan 2022 by 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...
18 Jun 2021 by CSAAT ADMIN
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...
14 Feb 2023 by Dan Sep2022
I have this StatefulWidget that supposed to retrieve data from MySQL database based on condition and add those retrieved values into an array so I can use the array values to be display on ListView. My Problem is that sometimes when the array...
5 Mar 2023 by Dan Sep2022
This problem is driving me crazy and I don't know what to do anymore I'm completely lost and it's ruining my life. I'm trying to insert a list values which I retrieved from MySQL database into listView when the user pressed a button but the...
8 Mar 2023 by Dan Sep2022
I have a function that will retrieve username from database and that username value will be stored in global string variable, everything works, and my goal is to display that username variable on the AppBar text but I keeps getting "Null is not a...
5 Jun 2023 by Dan Sep2022
I have base64 encoded string version of docx file stored in my database and I have to embed into my Flutter app to view the content of the file and I come up with this solution using webview_flutter which apparently I got from ChatGPT ...
30 Aug 2021 by 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.
8 Jan 2022 by 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...
7 Aug 2022 by Digiyang
Hi all, I'm trying to implement a slider that add a certain value to the initial value when checking out. But I'm not able to pass that extra value to my checkout API Call. Here an example: https://imgur.com/a/mp5ytzW Structure: PaymentWidget...
7 Aug 2022 by Digiyang
Hi all, I'm trying to implement a slider that add a certain value to the initial value when checking out. But I'm not able to pass that extra value to my checkout API Call, that is in the initSate. Any idea how to update the value inside...
18 Aug 2022 by Digiyang
Hi all, Can someone please tell me how to make my bottom navigation bar persistent in my app with auto_route ? I tried to find something in the official documentation, but unfortunately nothing. Thank you in advance for any help! Here is my...
3 Jul 2020 by 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.
23 Mar 2022 by Fazaamajd Fazaa
i have three types of user in my application (nurse,substitute, patient), every type will have access to specific home page. every type of user have his homepage and his specific features. so i want to implement some logic in my code to resolve...
24 Mar 2021 by Fix eg
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. ...
4 Apr 2014 by Fredrik Bornander
How to implement a simple HTML5 game using Dart.
24 Apr 2014 by Fredrik Bornander
Implementing a Tetris-like game for the web using Dart
26 Mar 2021 by 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...
28 Jan 2024 by gacar
I want to use if condition in the icon widget, but Dart gives an error. How should it be used correctly? Thanks. class Cell extends StatelessWidget { const Cell({super.key, this.caseTrend = false}); final bool caseTrend; @override ...
14 Feb 2024 by gacar
Hello, I'm new to Flutter/Dart. When I take an instance of a class and try to use a method in it, I getting below error.How can i use method from instance class with new class name? Thanks. "The instance member 'newData' can't be accessed in an...
14 Feb 2024 by gacar
I found solution on flutter/dart discord channel. I should have marked the method of the new class as "late". I marked late then working now. class Data { String read() { return ""; } } class Data2 { var newData= Data(); //...
3 Mar 2024 by gacar
Hello, I want set a value of extended class. How can i do it? Thanks. class A { String? value1A; A({ this.value1A, }); } class B extends A { String value1B = ""; value1A= ""; //
9 Mar 2024 by gacar
I want use a google fonts icon. I have Code point (e88e, info icon). But i cannot get right icon. How can i get icon from google icons by Code point? Thanks. This is icon link: Material Symbols and Icons - Google Fonts[^] import...
14 Apr 2024 by gacar
I have firebase realtime database. When I manually change data on the Firebase console, vscode stops responding and throws the following error. Error: TypeError: Instance of '_Exception': type '_Exception' is not a subtype of type...
19 Oct 2021 by Ghali Skalli
I'm making an movie lister app. I made my app like that: 1. The main.dart who run the project and contain all Tmdb (The Movie DataBase) process 2. The root_page.dart who contain all the "immovable" elements (app bar, bottom navigation bar, page...
24 Nov 2023 by Graeme_Grant
For Identity, cookies are okay for non-mobile applications. For mobile, you will need to use Bearer tokens.
24 Mar 2022 by Gyve Jayson Tolosa
I want to get the data like username and password from realtime database (firebase) and use it to login the user What I have tried: I tried getting the values but it didnt work
30 Jan 2014 by Hard Coder
Has Dart (dartlang.org) got any future as a way of builing web applications?
24 Jan 2022 by JamesPiner
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...
2 Nov 2021 by 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...
8 Jan 2022 by Kavya Bhargava
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...
29 Jan 2022 by Kavya Bhargava
I built an image picker after learning in a course. I am not getting any errors in the debug console or in the build. I am trying to click it but it is not working. I made another image picker in a similar manner in same app but that did not gave...
6 Feb 2022 by Kavya Bhargava
I am trying to upload videos to firebase before that I am trying to display them in the app in listview but they are not getting displayed on the screen, there is'nt any error messages in debug console either so I am unable to figure out what is...
17 Feb 2022 by Kavya Bhargava
I have built a streambuilder that has two-page builders. I realized it is not iterating over the last if statement, does anyone knows a function so that I can get it to iterate over the last if statement too? The condition of all if statements...
22 Feb 2022 by Kavya Bhargava
I am using a navigation bar with two buttons for both of them I have set the color as white but for one of them, the button is not changing and appears to be the same color as the navigation bar. The icons.newspaper widget is causing the issue. ...
4 Mar 2022 by Kavya Bhargava
I was following a tutorial for Firebase push notifications. I followed all the steps: Connecting app to Firebase, and importing packages (Firebase messaging and Firebase push notifications). I tried sending several notifications, but it did not...
17 Mar 2022 by Kavya Bhargava
I made a listview builder following a course in which I kept an elevated button(which adds video through image picker) to be index 0 and then videos shall be showed at index 0. My elevated button is not showing. I made same code for image picker...
2 Apr 2022 by Kavya Bhargava
I am trying to display the video after selecting it with the help of an image picker. videoscreen: List _video = []; @override Widget build(BuildContext context) { return Scaffold( body: Column(children: [ ...
9 May 2022 by Kavya Bhargava
I am using a video player to play the videos I get from my streambuilder. I am unable to place my dispose function in such a way that I don't get this error. Error is causing the emulator to crash after certain point. My screen where I am...
29 May 2022 by Kavya Bhargava
Before every video I am getting a black screen which I am not sure why is it appearing. At first I thought it is due to the internet connection or something but that does not seem to be affecting it at all. I am getting video urls from the...
18 Feb 2023 by Kavya Bhargava
My flutter share button is running extremely slow. Reason I think is that it has to screenshot the image after getting from firebase for each specific news.(My Assumption) Share button: IconButton( onPressed: () async { ...
9 Feb 2022 by Kavya Bhargava
I am trying to make a reels app. I am getting this error, I checked other answers for this question all of them said there is a problem with the video but I am using cloud-firestore URL, the same URL is working for the listview Widget but not for...
17 Jan 2024 by Kavya Bhargava
I after a long time was working on one of my projects so I updated my flutter code and packages too. I started receiving error: A problem occurred configuring project for "package name". At first, it was for cloud firestore and firebase ones but...
20 Jan 2024 by Kavya Bhargava
I am receiving this error: Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install /Users/XXX/FlutterDev/XXX_app/build/app/outputs/flutter-apk/app-debug.apk: Failure [INSTALL_FAILED_CONTAINER_ERROR: Failed to...