Tutorials

What is Dart?

Dart is a client-optimized language for fast apps on any platform - dart.dev

Dart is a multi-paradigm programming language which was developed by Google started in 2011. It lets you use a single codebase to build a web app, desktop application and Android/iOS app. Its syntax has been described as a mix of Java and JavaScript.

I am interested in Dart as cross-platform way of building a mobile app and also a web app, however I am not planning to learn much more about it. As I’ve read it is a languaged backed mostly by Google and does well as a language for Flutter for mobile apps, but it is not catching on for web apps. React Native is a good alternative. Or Java/Kotlin for Android-only development. Note Android and Kotlin also come from Google, but are popular in the market and with developers.

Resources

Dart

  • Dart official site
  • Wikipedia page

    Dart is a client-optimized[clarification needed] programming language for apps on multiple platforms. It is developed by Google and is used to build mobile, desktop, backend and web applications. Dart is an object-oriented, class defined, garbage-collected language using a C-style syntax that transcompiles optionally into JavaScript. It supports interfaces, mixins, abstract classes, reified generics, static typing, and a sound type system.

  • Web platform support

    Dart supports the web as one of its core platforms. Dart-to-JavaScript compilers are available both for development (with a quick edit-refresh cycle) and for production (with a focus on code size and speed).

    In addition to compilers, the Dart web platform provides core libraries, access to the DOM (Document Object Model), and interoperability for calling JavaScript from Dart.

  • Tutorials
  • Dart samples - these were copied to this project for the basics section.
  • Dart packages on pub.dev. These are separated into flutter and web packages.
  • Recommended IDEs for Dart

Flutter

  • Flutter official site

    Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.

  • Web support for Flutter
  • Wikipedia.

    Flutter is an open-source UI software development kit created by Google. It is used to develop applications for Android, iOS, Windows, Mac, Linux, Google Fuchsia and the web. Flutter apps are written in the Dart language and make use of many of the language’s more advanced features.

  • Flutter channel on Youtube
  • Blog

Install

Web

For Dart web, command-line, and server apps, go to Get the Dart SDK.

Mobile

For developing only mobile apps, go to Install Flutter.

See the Dark SDK Overview and subsections for details on the various ways to run Dart.

Run script on command-line

$ dart --enable-asserts test.dart

Start server

How to start a Dart application server. See the links for quickstarts and tutorials.

Hello World

main() {
    var msg = 'Hello, World!';
    print("$msg");
}