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.

Filter by
Sorted by
Tagged with
1
vote
0answers
15 views

Flutter: ToggledButtons using FlatButton

I'm new to Dart and Flutter and I would like to know what do you think about this code and if it's any way that I could improve it :). ...
0
votes
0answers
27 views

Flutter - Set the state of the dynamically created child widgets

This is what I wan't to do: In my app I've 2 custom widgets called SelectItems. If the user clicks on item, it changes the background color. Everything is working ...
0
votes
2answers
73 views

NoSQL data model design for players in a game

I am modelling a game which can be single (player1 vs player2) or double (pair 1 vs pair 2, where each pair contains 2 players) and each game has a score. The game is group and date based e.g. Group A ...
2
votes
0answers
26 views

Custom permission Dialog in Dart

I'm using the flutter_simple_permissions plugin to request permission to read contacts on my flutter application. I want the app to quit when a user denies the permission, and need to show them a ...
0
votes
0answers
1k views

Flutter - Implementing a simple ListView with MVVM

I've implemented a simple ListView in MVVM that displays a few PrepSteps (short form of PreparationSteps). While implementing I wasn't sure about if my approach is "...
2
votes
1answer
233 views

Regex to DFA parser in Dart

I've created a Regex to DFA parser, using Thompson's construction algorithm and epsilon-reduction. Here is the code: builtins.dart: ...
2
votes
1answer
44 views

Transform poor CSS into a more beatiful form in Dart

I have this script that opens a file containing (possibly) bad CSS, lexes the content of it and creates a new file with the same code in a more pleasant way to look at. It formats it and sorts the ...
2
votes
2answers
207 views

Performance of RegExp vs Rune Loop

I was recently talking to someone about a function I wrote to mimic (very basically) the string interpolation function String.Format() found in the C# language. ...
4
votes
1answer
392 views

Snake Game in Dart

First project in Dart - looking for style tips. I feel like I'm writing it a bit like Java, and would like to learn how to write dart-y dart. Also - what's the convention on multiple files in a ...
5
votes
2answers
586 views

A Sudoku game made from Google's Dart language

This is my first real web project and I have never touched JavaScript (barely touched CSS), so I just skipped that and went to dart for fun. Here's a live demo The code for the dart file is down ...
2
votes
1answer
108 views

Providing core functionality orthogonal to business logic in Dart

Below is a simple Trade class with minimal business logic: primarily a method to get market value associated with the trade. But the trade needs the following pieces of core functionality, orthogonal ...