Tried the webui_click tutorial target
Got an error
cannot resolve class name 'ListBase' from 'ListWrapper
Using this version of Dart Editor
Dart Editor version 0.4.5_r21094
Dart SDK version 0.4.5.1_r21094
A new version [21823] is ready to install
Updated Dart Editor to latest version under Help/About Dart Editor and problem went away
Dart Editor version 0.5.0_r21823
Dart SDK version 0.5.0.1_r21823
Related
I had Dart SDK with version 2.16 installed and worked fine on my machine.
I tried to install the Dart with version 3 which is currently in development (3.0.0-0.0.dev), so in order to try it, I replaced the path of the Dart sdk in the environment variables with the path of the new dart with version 3, Then I created a new project on VScode, and this showed up:
Here I am writing code with the Records feature ( Which exists only in that Dart 3 dev version), and this error shows up:
This requires the 'records' language feature to be enabled.
Try updating your pubspec.yaml to set the minimum SDK constraint to 3.0.0 or higher, and running 'pub get'.
But on my pubspec.yaml:
environment:
sdk: '>=3.0.0-0.0.dev <3.0.0'
but that error is thrown, and I have no idea what cause it and how I can fix it and run the code successfully.
Thank you.
I created project using flutter sdk version 1.7.8. After long time when I run the build it was giving me errors in sdk files. So I just downloaded new version of flutter sdk (2.2). I have changed environment path to latest sdk version, but when I run project it still giving me error related to older sdk version.
Here is the error
/C:/flutter_windows_v1.7.8+hotfix.4-stable/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_slidable-0.4.9/lib/src/widgets/slidable.dart:786:46: Error: Method not found: 'TypeMatcher'.
return context.ancestorStateOfType(const TypeMatcher());
This is my environment variable
Why it is giving error related to version 1.78, although I have provided version 2.2 in my environment variable.
I think the one of the plugins that you are using is deprecated when you upgrade flutter you mostly need to upgrade the plugins as well.
and you need to change your pubspec.yaml file also and change the dart version .
so run flutter clean first.
change dart version. then try to run if it doesnt work still you need to upgrade plugins and remove the deprecated plugin.
OR
You might have the old Path in your IDE (Android Studio, VS CODE ) ETC.
I got Dart version 2.9.0. And my flutter is running with that version now.
However, I got this message:
Set literals weren't supported until version 2.2, but this code is required to be able to run on earlier versions
But I don't want it to be required to run on Dart versions earlier than 2.2.
How do I force it to run only on versions after 2.2 ?
You can edit the dart sdk constraints in your pubspec.yaml file to only use dart versions 2.2 and later.
environment:
sdk: '>=2.2.0 <3.0.0'
See this site for more information about the pubspec.yaml file.
Is AngularDart installed with Dart 2?
I can do dart --version but how do I know which version AngularDart?
Is AngularDart installed with Dart 2?
No, AngularDart is not included in the Dart SDK.
AngularDart is a separate pub package that you'll include as a dependency in your Dart project's pubspec.yaml (as explained by Günter), on a per-project basis.
Add
dependencies:
angular: "^5.0.0-alpha+13"
to pubspec.yaml and run
pub get
The output and the created pubspec.lock tell you the fetched package versions.
For this Angular version you need Dart 2
I wanted to give the latest Dart Polymer lib a spin, so I updated the pubspec file and ran a pub install. However, the install fails with the following message:
Pub install failed, [1] Resolving dependencies.........
Package polymer requires SDK version >=0.8.1+1 but the current SDK is
0.7.6+4.r28108
Is it somehow possible to use the latest Polymer version via pubspec, or do I need to build the SDK myself from the sources?
https://www.dartlang.org/tools/editor/ has links to the bleeding edge, continuous build DartEditor
https://storage.googleapis.com/dart-editor-archive-continuous/latest/darteditor-win32-32.zip
https://storage.googleapis.com/dart-editor-archive-continuous/latest/darteditor-win32-64.zip
As of today, you should be able to upgrade 0.8.1.2 if you go to Help > About Dart Editor.
It seems pretty common that the libraries update a day or two before the SDK, so normally when I run into this problem I put in the pubspec something like the following until I can update the SDK:
dependencies:
polymer: "< 8.0.0"