Editor only — Dart is not executed here
Online Dart Editor
Dart reads much better with proper highlighting for named parameters, async code and widget trees, and this gives you that in any browser tab. It does not give you a Dart VM, so Flutter widgets are code you can write and read here, not something the page renders.
Can you run Dart here? No — and that is deliberate.
AltF Code edits Dart; it does not run it and cannot render a Flutter widget. There is no Dart VM here. Run the file with dart run, or open your project in Flutter tooling on your own machine.
A browser can execute only HTML, CSS and JavaScript. Everything else on AltF Code is a full editing surface — real highlighting, real editing, real files — and this page says so instead of advertising a compiler that does not exist.
Dart in the editor
A file named main.dart is highlighted with the dart grammar — the same grammar Visual Studio Code uses.
class Order {
final int id;
final double total;
const Order(this.id, this.total);
}
void main() {
const orders = [Order(1, 42.5), Order(2, 17.25)];
final sum = orders.fold<double>(0, (acc, o) => acc + o.total);
print('${orders.length} orders, total $sum');
}
What you can do with Dart here
- Sketch a widget tree or a class with correct highlighting for named parameters and async syntax.
- Read Dart from documentation or a package source on a machine without Flutter installed.
- Export a .dart file that dart run or your Flutter project accepts unchanged.
Dart in this editor — the specifics
| File extension | .dart |
|---|---|
| Syntax grammar | Monaco "dart" — bundled, no download |
| Code intelligence | Syntax highlighting, bracket matching, comment toggling and word-based suggestions — no type checking |
| Runs in this page | No — editing and highlighting only |
| Run it locally with | dart run main.dart |
| Cost / account | Free, no sign-up; files stay in your browser |
Dart editor — common questions
- Can I run Dart or preview a Flutter widget?
- No. There is no Dart VM and no Flutter renderer in this page, so nothing executes and no widget is drawn. Use dart run or the Flutter toolchain locally, or DartPad for a hosted runner.
- How do I run what I write?
- Download the file and run dart run main.dart, or drop it into a Flutter project and run it with the Flutter CLI or your IDE.
- Is it free and private?
- Yes. No account, nothing uploaded, files kept in your browser's local storage.
- Does highlighting handle modern Dart?
- Yes — null safety syntax, named and required parameters, async/await and cascade notation all colour correctly.
Start writing Dart
The editor opens with a blank file and a cursor. Nothing to install, nothing to sign up for, and your work is saved in your own browser.
Open AltF Code