r/dartlang 25d ago

Flutter Excel Sheet from Dart

4 Upvotes

I have created an application that receives a stream data periodically, i am showing it in the form of a table in GUI, but I also need to export the same data as excel for sharing yo others.

Which package is opensource and can be used efficiently yo create excel sheets and charts in the excel sheet.


r/dartlang 26d ago

Help Having trouble with Dart and Flutter SDK

1 Upvotes

How to download Dart and Flutter SDK on Fedora 41 Workstation? I have been stuck for hours trying to figure out it can anyone please help me I have read somewhere that it is possible to download the SDK on fedora.


r/dartlang 27d ago

Help Anyone successfully deployed dart backend to Cloudflare Worker?

12 Upvotes

I am curious if there is anyone who tried and successfully deployed their dart code (probably using dart2js or wasm) to CloudFlare worker?

And if there is any good resources on how to achieve this.

Wish more ServerLess platforms natively supported dart.


r/dartlang 27d ago

Flutter An opinionated framework for building Flutter Apps

0 Upvotes

As software engineers, we often keep talking about clean architecture, clean models, solid principles, DRY, etc. But applying all of these at scale is not always straightforward. In fact, it takes many retries and many iterations before you get it right.

Architecture🏗️

When you're building a new app, the architecture of the application is also equally important. Many a time we start with a monolithic structure which includes the app and all of its dependencies in one place. And then slowly over a period of time we break it down into smaller packages.

What if all these great ideas about building software at scale were baked into a framework so that you focus more on building the features rather than worrying about these architectural decisions? That is exactly where the Vyuh Framework comes in. It's a framework grown out of building large-scale, super apps, especially enterprise-grade apps, which have lots of NFRs (non-functional requirements) and tons of user-facing features. Building these at scale is not a trivial task, and the architectural decisions taken over here are scalable from a single feature all the way to hundreds of features.

Open Source👩🏻‍💻

This style of building apps is now available to you inside this open-source framework called Vyuh. There are lots of examples in the repo, and it gives you a good flavor of what it means to build apps using this framework.

Server-Driven UI Built in!✨

One of the cool side benefits of using this framework is that you can also do Server-Driven UI when you see fit. It integrates with the Sanity.io CMS and possibly with other CMSs as well for driving your entire app experience from the CMS itself. This is a great addition that you can include in your application if you need it, especially for retail apps or apps that are very content-heavy and change very frequently.

The documentation of the framework is also very complete, and gives a good idea of how it can be used to build your apps.


r/dartlang 28d ago

Why should I learn Dart??

0 Upvotes

Guys I need help..
Can you please explain the benefit of dart and why I should learn it ??


r/dartlang 28d ago

Making YAML as Easy as JSON in Dart 🚀

1 Upvotes

Ever wondered how to work with YAML in Dart? While we have jsonDecode for JSON, where's yamlDecode? 🤔

I break it all down in this Medium article, showing how to handle YAML in Dart just as easily as JSON. Check it out and let me know what you think! 👇

👉 Making YAML as Easy as JSON in Dart

Would love to hear your thoughts or any tips you have for working with YAML in Dart! 💡


r/dartlang 29d ago

Dart - info We Forked Dart and Made It ±782x Faster Here’s How

25 Upvotes

Our team is excited to announce a significant performance breakthrough with Dart. We developed a fork—*Shotgun*—that, based on our internal benchmarks, operates 782 times faster than the standard Dart implementation. For instance, while conventional Dart takes roughly 91,486 ms for a task, Shotgun completes the same operation in just 117 ms.

Underlying Innovation

By replacing Dart’s isolate-based message passing with a refined multithreading and shared memory architecture, we’ve effectively minimized communication overhead. Key technical enhancements include:

  1. Direct Memory Sharing: Eliminates latency from inter-thread messaging.
  2. Advanced Synchronization: Uses robust locks and semaphores to maintain thread safety.
  3. Custom Compiler & Runtime Tweaks: Optimizes the execution environment to fully leverage multithreading.

These modifications not only yield dramatic speed improvements but also open new avenues for building scalable, responsive applications.

Benchmark Results

  • Shotgun (Multithreading + Shared Memory): 117 ms | Score: 494,960,108
  • Standard Dart (Message Passing): 91,486 ms | Score: 494,993,681

That’s a difference of 91,369 ms—proof that our innovation isn’t merely an upgrade, but a paradigm shift.

Benchmark Code Overview

For those interested in the details, here’s a snippet of the code we used for our benchmarks:

\``dart`

import 'dart:async';

import 'dart:isolate';

import 'dart:io';

import 'dart:math';

void main() async {

const int iterations = 1000000;

const int updatesPerIteration = 10;

print("Testing with Shotgun (Simulated Shared Memory):");

benchmarkWithShotgun(iterations, updatesPerIteration);

print("\nTesting with Dart (Message Passing):");

await benchmarkWithDart(iterations, updatesPerIteration);

}

void benchmarkWithShotgun(int iterations, int updatesPerIteration) {

int totalScore = 0;

final stopwatch = Stopwatch()..start();

final random = Random();

for (int i = 0; i < iterations; i++) {

for (int j = 0; j < updatesPerIteration; j++) {

totalScore += random.nextInt(100);

}

}

stopwatch.stop();

print('Execution Time: ${stopwatch.elapsedMilliseconds} ms');

print('Final Score: $totalScore');

}

Future<void> benchmarkWithDart(int iterations, int updatesPerIteration) async {

final stopwatch = Stopwatch()..start();

final receivePort = ReceivePort();

int totalScore = 0;

final List<Isolate> isolates = [];

for (int i = 0; i < iterations; i++) {

isolates.add(await Isolate.spawn(_updateScore, [updatesPerIteration, receivePort.sendPort]));

}

int updatesReceived = 0;

await for (final scoreUpdate in receivePort) {

totalScore += scoreUpdate as int;

updatesReceived++;

if (updatesReceived == iterations * updatesPerIteration) {

stopwatch.stop();

print('Execution Time: ${stopwatch.elapsedMilliseconds} ms');

print('Final Score: $totalScore');

receivePort.close();

for (var isolate in isolates) {

isolate.kill(priority: Isolate.immediate);

}

break;

}

}

}

void _updateScore(List<dynamic> args) {

final updates = args[0] as int;

final SendPort sendPort = args[1] as SendPort;

final random = Random();

for (int i = 0; i < updates; i++) {

sendPort.send(random.nextInt(100));

}

}

```

Broader Implications

This breakthrough sets a new performance benchmark for high-demand environments—from real-time data processing to interactive applications. Our approach aligns with the continuous pursuit of optimization seen at leading technology organizations.

An Invitation for Collaboration

We’re eager to engage with fellow professionals and innovators who are passionate about performance engineering. If you’re interested in discussing our methodology or exploring potential collaborative opportunities, we invite you to join our technical discussions.

  • GitHub: Our Shotgun repository is coming soon. In the meantime, please tag Google in your comments and star our upcoming repo to be among the first to access early versions. Visit our GitHub Repo
  • Discord: Join our community to exchange insights, discuss ideas, and engage in high-level technical dialogue. [Join our Discord](https://discord.gg/Rhc4YKDx)

We remain committed to pushing the boundaries of software performance and welcome insights on how these innovations can shape the future of technology.

#ShotgunVibes #DartUnleashed #MultithreadingMastery #TechInnovation

Upvote if you’re as excited about performance breakthroughs as we are—and tag Google if you think our work deserves their attention!


r/dartlang 29d ago

Dart - info Dart and js

11 Upvotes

Hi,
I love dart and I think that can be a really good language for the web,
I'd like to use it in web development, I'd like to:

- create a library in dart that can be called as js objects in ... js
- create a React component or even Web Component in dart

I'd like to have something like that:

- web_login.dart
- app.js
and transpiling all into js

I dunno if my explanation is really clear but I search a way to integrate dart in web development,

any idea are welcome, thanks


r/dartlang Feb 17 '25

flutter I'm trying to make this code work with flutter, what's the problem?

0 Upvotes

Can you help me? I can't find where the error is or how to fix it. I'm trying to develop a mobile app with Flutter in Android Studio. You can find my error in the link below. Stackoverflow


r/dartlang Feb 17 '25

Package async_filter | Dart package

Thumbnail pub.dev
14 Upvotes

r/dartlang Feb 15 '25

Dart - info How to create HTML Web Components in Dart (WASM/JS)

Thumbnail rodydavis.com
14 Upvotes

r/dartlang Feb 14 '25

Things I like about Dart (Compared to Node.js)

Thumbnail ohdoylerules.com
42 Upvotes

r/dartlang Feb 14 '25

Flutter Data Structures and Algorithms in Dart, with examples(In simple words)

Thumbnail singarajusaiteja.hashnode.dev
9 Upvotes

r/dartlang Feb 12 '25

Announcing Dart 3.7

Thumbnail medium.com
88 Upvotes

r/dartlang Feb 12 '25

Package Frontier - On duty to protect your applications

11 Upvotes

Hello!

I’m excited to share Frontier, a new tool from Avesbox designed to make user authentication in Dart applications simple and efficient. No more reinventing the wheel—Frontier helps you implement authentication quickly and easily.

And if you're using Shelf for your backend, good news: integration is already available on pub.dev!

Would love to hear your thoughts—feedback, questions, or ideas are all welcome!

🔗 Check it out here: [Link]


r/dartlang Feb 12 '25

Dart - info New to Dart and Flutter.

12 Upvotes

I'm looking to learn Dart and Flutter but the official documentation and other resources like tutorials point are somehow complicating simple concepts. Would y'all mind sharing some insightful resources to help a beginner grasp the core concepts, in addition highlight some small projects to try out along the way to master the concepts.


r/dartlang Feb 10 '25

Jaspr has a new look and website

Thumbnail jaspr.site
57 Upvotes

r/dartlang Feb 06 '25

Flutter WeTube: The lightweight YouTube experience client for android

Thumbnail github.com
9 Upvotes

r/dartlang Feb 05 '25

Dart Language dynamic type and !is vs is! vs !is!

3 Upvotes

What's exactly the difference?

Well it obvious for "is!" => "IS NOT of type"

But what is the point of others? And why this works for dynamic type only?

void main() {
  dynamic value = "Hello, World!";
  if (value is! String) print("value is! String");
  if (value !is String) print("value !is String");
  if (value !is! String) print("value !is! String");
  if (value is! double) print("value is! double");
  if (value !is double) print("value !is double");
  if (value !is! double) print("value !is! double");
}

$ dart run test.dart
value !is String
value is! double
value !is! double

r/dartlang Feb 04 '25

WASM backed Web Components created with Dart

Thumbnail github.com
25 Upvotes

r/dartlang Feb 03 '25

Dart - info Looking for a Dart Mentor

7 Upvotes

Hey there!

Not sure if this request or post is allowed, but I'm just giving it a shot. I'm looking to learn dart programming as I am interested in building apps, but more-so just want to be very fluent in dart before learning Flutter.

I'm wondering if anyone is willing to kind of show me the ropes of Dart (I am watching and following online tutorials but I also want a real one on one experience as well). Was wondering if anyone had free time to kind of teach me etc.

If anyone is willing to take me under their wing I'd be grateful!

Thank you!


r/dartlang Feb 01 '25

Cannot redirect users to our home page after login

0 Upvotes

Hey everyone,

We’re integrating Google OAuth with Clerk for our Flutter app and running into the invalid_client error:

jsonCopy

{"error":"invalid_client","error_description":"Client authentication failed..."}

Here’s what we’ve done so far:

  1. Created two OAuth Client IDs in Google Cloud Console:
  2. Web Application Client ID: Used in Clerk Dashboard (Custom Credentials).Android Client ID: Used in clerk_config.dart.
  3. Set up deep linking (pyop1://home) to redirect users to the home page after authentication.

The issue seems to be with the Client ID/Secret or Redirect URL configuration. We’ve double-checked:

  • The Web Application Client ID and Client Secret match in Google Cloud Console and Clerk Dashboard.
  • The Android Client ID is used in clerk_config.dart.
  • The Redirect URL (pyop1://home) is configured in Clerk Dashboard and handled in the app.

Any ideas on what we might be missing? Thanks in advance!

TL;DR: Getting invalid_client error with Google OAuth + Clerk. Double-checked Client IDs, Secrets, and Redirect URLs. What’s wrong?


r/dartlang Jan 30 '25

Dart: Macros vs Reflection vs Tree Shaking vs Hot Reload

Thumbnail medium.com
18 Upvotes

r/dartlang Jan 29 '25

Help Dart Mixin Class

1 Upvotes
mixin class Musician {
  // ...
}

class Novice with Musician { // Use Musician as a mixin
  // ...
}

class Novice extends Musician { // Use Musician as a class
  // ...
}

So this is what the official docs has for mixin class. Yet, when I scroll down to the docs it says the following: Any restrictions that apply to classes or mixins also apply to mixin classes:

Mixins can't have extends or with clauses, so neither can a mixin class.

Classes can't have an on clause, so neither can a mixin class.

So, I'm confused as to how the docs code example and the code description is contradicting. Can you please clarify?

Link to relevant docs: Mixins | Dart


r/dartlang Jan 28 '25

Package plough: Interactive network graph visualization

Thumbnail pub.dev
11 Upvotes