Skip to main content

Questions tagged [dart]

Dart is a class-based, optionally-typed programming language for building web and command-line applications. Dart compiles to modern JavaScript to run on the client and runs natively on the Dart VM for server-side apps.

1 vote
1 answer
111 views

I'm new to Flutter and BloC and it just seems quite different than what I've been using until now. In terms of state, I'm coming from the JS world of Vuex, Pinia and Redux and I've also worked a with ...
thefallen's user avatar
2 votes
0 answers
125 views

I'm trying to see if this RenderObject is well implemented or if it's doing something bad with respect to Flutter rendering algorithm, especially: Is it ok to call ...
Ademir Villena Zevallos's user avatar
4 votes
1 answer
128 views

I've noticed a difference between the auto-complete code from VS Code using Flutter and the code shown in the Riverpod documentation. Auto-complete code in VS Code using Flutter. If I do this and ...
DevQt's user avatar
  • 157
4 votes
1 answer
84 views

The code works properly in a simplified version of the program I wrote. Here's the code: ...
DevQt's user avatar
  • 157
1 vote
1 answer
109 views

I have implemented a working Hebrew Date Picker package (link on pub.dev) in Flutter that supports both single date and date range selection. Here's what the date picker looks like in action: Single ...
MendelG's user avatar
  • 107
5 votes
1 answer
269 views

I try to program a small app to track my cost spendings. As state management I use Cubit. As I am a flutter beginner, I wanted to verify if I implemented it correctly. The UI consists of 2 screens: 1 ...
Rasputin221's user avatar
2 votes
1 answer
221 views

This class synchronizes access to an async resource. If retainFutureErrors is false, it will keep retrying until there is a success. Otherwise, the ...
Christian Findlay's user avatar
2 votes
0 answers
55 views

This is my new library for managing flutter rebuilds based on state changes. It is very similar to AnimatedBuilder but takes a factory to create the notifier instead of an instance of the notifier. It ...
Christian Findlay's user avatar
1 vote
1 answer
438 views

I'm cleaning up my Flutter code and I'm not sure if I'm writing my Flutter code in the correct style. First, here's my code to import the file: ...
My Car's user avatar
  • 119
2 votes
1 answer
171 views

I'm trying to solve a LeetCode problem target-sum, in two languages: Python & Dart. The difference of time taken is shocking for me" Python took ~70ms while Dart took ~900ms !! Why does Dart ...
Abhishek Patil's user avatar
2 votes
1 answer
385 views

This package is on pub dev here It's on Github here ...
Christian Findlay's user avatar
1 vote
1 answer
2k views

I'm using the shelf package from Dart to implement a backend for the realworld-example-app. According to the specs, some routes require authentication, some don't, and in others the authentication is ...
Marcus Vinícius Monteiro's user avatar
5 votes
3 answers
301 views

INTRODUCTION I am studying the book Five Lines of Code (2021) by Christian Clause. The book covers several techniques regarding refactoring legacy code. I am learning much and applying several of its ...
George Lee's user avatar
4 votes
1 answer
3k views

I'm new to coding in general and I am working in flutter right now. I've successfully been able to add single string objects into a list but I'm having issues adding an object with multiple strings ...
Jared's user avatar
  • 41
-1 votes
2 answers
464 views

I have the function below, I want to access the context globally and I don't know if it's a good idea, I'm getting the context from the Application, I have TestAppliction in the test environment and I ...
ali-star's user avatar
  • 101

15 30 50 per page