Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

Error compiling file #4081

Open
pablomujica opened this issue Oct 21, 2016 · 0 comments
Open

Error compiling file #4081

pablomujica opened this issue Oct 21, 2016 · 0 comments

Comments

@pablomujica
Copy link

The following error shows up when i'm trying to run the hello world default code when you create a project in with project type: Dart Chrome App

[error] Can't read 'package:chrome/chrome_app.dart' (ChromeService error: Could not resolve reference: package:chrome/chrome_app.dart

the code is as follow:


import 'dart:html';

import 'package:chrome/chrome_app.dart' as chrome;

int boundsChange = 100;
int count = 0;

void main() {
  querySelector('#text_id').onClick.listen(resizeWindow);
}

void resizeWindow(MouseEvent event) {
  chrome.ContentBounds bounds = chrome.app.window.current().getBounds();

  bounds.width += boundsChange;
  bounds.left -= boundsChange ~/ 2;

  chrome.app.window.current().setBounds(bounds);

  boundsChange *= -1;

  querySelector("#count").text = (count++).toString();
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant