question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Dart 2 for Flutter development

See original GitHub issue

It 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:37 (30 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Feb 14, 2018

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).

1reaction
devoncarewcommented, Feb 2, 2018

It’ll probably be earliest next week; we’ll follow up on this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found