TextOverflow.visible not available (same code was ok on another computer) - dart

Have the following code:
Text(
item,
softWrap: true,
overflow: TextOverflow.visible,
textAlign: TextAlign.center,
),
Worked fine on a computer. Pushed to github, checkout on another computer, I get:
The getter 'visible' isn't defined for the class 'TextOverflow'.
Tried: Flutter upgrade, packages get, packages upgrade, flutter clean.
Nothing seems to work.
It's the same code, both machines are macs running the same version of the OS and everything else.
Both have the latest version of Android Studio, with the latest versions of the Flutter and Dart plugins.
I am stumped. :(
edit
Print screen of the "visible" field in TextOverflow:

Related

dart SDK version doesn't seem to change

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.

How to reinstall Dart Editor

I've been trying Dart x64 for a month (under Windows 8).
Unfortunately, I've removed the "\Users\$user\AppData\Roaming\Pub\" folder. After that any Dart/Polymer project (including shipped samples like sunflower) stops showing anything in a browser without any error or exception.
I deleted the \dart folder, and some other dart folders that I'd found (\Users\$user\Application Data\Pub\, \Users\$user\.dartium\, \Users\$user\DartEditor\).
Then I'd reinstalled the Dart x64 (unpack zip-file), but problem still remains.
Then I'd removed Dart x64 and installed Dart ia32. In this case projects build with errors (can't find files from standard package), but work well in the Dartium browser.
I'd like to completely remove Dart and reinstall the new one. Can anyone help me start from scratch with Dart?
UPDATE:
I've deleted following Dart artifacts:
C:\Users\$user\dart\
C:\Users\$user\DartEditor\
"C:\Users\$user\Application Data.stagehand"
"C:\Users\$user\Application Data\Pub\"
C:\Users\$user.dartium\
C:\Users\$user\AppData\Local.dartServer\
But got the problem, described in the How to make Dart Editor find referenced packages thread.
So question still actual.

Dart editor debugger is not working

Is just nor working, it Works if I run the proyect as JavaScript but not if a run it on Dartium, I removed all the extensions from Chrome, I reinstalled Dart and I still have the same problem.
Edit: I get this exception in the editor:
ReferenceError: fill most visited is not defined [id=1]
Dart Editor version 1.8.5.release (STABLE)
Dart SDK version 1.8.5
Window 8.1 64
What can I do?
OK I fixed the problem deleting the folder AppData\Local\Google\Chrome, now is working, thanks.

Couldn't find `document._registerDartTypeUpgrader`

My previously executing application now fails to run with the following stacktrace
Exception: Unsupported operation: Couldn't find 'document._registerDartTypeUpgrader'. Please make sure that 'packages/web_components/interop_support.html' is loaded and available before calling this function. (package:web_components/interop.dart:24)
What exactly does this means.
I have the same problem but only on my Windows machine. On my MacBook it works OK with the exact same code.
UPDATE:
I've compared my Windows machine with the MacBook regarding versions. They both have:
DartSDK 1.7.2_r41096
Chromium 37.0.2062.120 (292122)
The packges folder symlinks point to the exact same version folder for every package
Still no idea what the difference is.
UPDATE:
Got it working after changing version to "any" for some packages and doing a "pub upgrade". I checked in the pubspec.lock which packages were upgraded. If you depend on any of these it might help if you upgrade them:
args
barback
code_transformers
collection
core_elements intl
paper_elements
smoke source_maps
stack_trace
string_scanner
In particular I suspect the old version of core_elements and paper_elements to have caused the problem but I have not reproduced it.

web_components in dartium

I had some trouble to display my project in FF cause of shadow_dom. I read that the shadow_dom package is deprecated so I followed the steps in http://pub.dartlang.org/packages/web_components and added web_components to my project.
Now I can build and run my project in FF. However when I include packages/web_components/platform.js and run my project in dartium it displays without css whereever I use shadow_dom. I also get the following error :
ShadowDOMPolyfill polyfill was loaded in Dartium. This will not work.
This indicates that Dartium's Chrome version is not compatible with
this version of web_components.
How to solve this ?

Resources