I hereby claim:
- I am johnpryan on github.
- I am jpryan (https://keybase.io/jpryan) on keybase.
- I have a public key ASDOX-dRfNjzQZqfSZVTEaqkyxs9jtNtuca8WLsL-oKmVgo
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>js_interop_bug</title> | |
<link rel="stylesheet" href="styles.css"> | |
<script src="index.js" type="text/javascript"></script> | |
<script defer src="main.dart" type="application/dart"></script> | |
<script defer src="packages/browser/dart.js"></script> | |
</head> | |
<body> |
<link rel="import" href="../ace-element/ace-element.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
cd /usr/local/Homebrew/Library/Taps/dart-lang/homebrew-dart | |
git remote rm origin | |
git checkout -B master OLD_COMMIT_HASH | |
brew unlink dart | |
brew install dart --with-dartium --with-content-shell |
I hereby claim:
To claim this, I am signing this object:
@HtmlImport('${NAME}.html') | |
library ${NAME}; | |
import 'package:polymer/polymer.dart'; | |
import 'package:web_components/web_components.dart'; | |
@PolymerRegister(${CLASS_NAME}.tag) | |
class ${CLASS_NAME} extends PolymerElement { | |
static const String tag = '${TAG_NAME}'; |
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
Did you remember to add the async keyword to the getChange function? | |
Did you remember to use the await keyword before invoking getDollarAmount? | |
Remember: 'getChange' needs to return a future! |
The important thing here is to add a SizedBox in between the other two widgets, and use `width: 50` to set its width. |
import 'package:flutter_web/material.dart'; | |
import 'package:flutter_web_test/flutter_web_test.dart'; | |
import 'package:flutter_web_ui/ui.dart' as ui; | |
Future main() async { | |
await ui.webOnlyInitializePlatform(); | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
import 'package:flutter_web/material.dart'; | |
import 'package:flutter_web_test/flutter_web_test.dart'; | |
import 'package:flutter_web_ui/ui.dart' as ui; | |
Future main() async { | |
await ui.webOnlyInitializePlatform(); | |
runApp(TasksApp()); | |
} | |
class Task { |