Support Dart 2 for Flutter development
See original GitHub issueIt would be great if you could support also the new Dart 2 programming language constructors for Flutter development.
See https://flutter.institute/flutter-with-dart-2 for reference. To use it via the command line, you have to use “flutter run --preview-dart-2”.
The following shows syntax errors in the Dart editor.
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'dart:async';
class OctalClockApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Octal Clock',
theme: ThemeData(
primarySwatch: Colors.blue,
fontFamily: 'Fixed',
),
debugShowCheckedModeBanner: false,
);
}
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:37 (30 by maintainers)
Top Results From Across the Web
Dart 2 migration guide
Dart 2 has a few key differences from earlier versions of Dart. This page briefly covers those differences and gives general advice on...
Read more >Dart programming language | Dart
Supported by Google. Dart is free and open source. Optimized for UI. Develop with a programming language specialized around the needs of user...
Read more >Supported platforms - Flutter documentation
Supported platforms ; Android, API 16 (Android 4.1) & above, All ; iOS, iOS 11 & above, All ; Linux, Debian, 64-bit, All...
Read more >FAQ - Flutter documentation
Flutter supports development using Linux, macOS, ChromeOS, and Windows. What language is Flutter written in? Dart, a fast-growing modern language optimized for ...
Read more >What's new - Flutter documentation
Flutter 2 is live!!! For more information, see Announcing Flutter 2, What's new in Flutter 2, Flutter web support hits the stable milestone,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is merged into v2.9.0. There are still some issues in the SDK (spews errors during launch) which I believe are being worked on but I’ve confirmed no analyzer warnings (so we’re correctly passing the flag to the analyzer) and the app runs (so we’re correctly passing to
flutter run
).It’ll probably be earliest next week; we’ll follow up on this issue.