From bdc5dc1af14c0089fa2e3078c309432c5a9a83bb Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 7 Jul 2018 21:07:42 +0200 Subject: [PATCH] Add Message for App Failure --- lib/app_component.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/app_component.dart b/lib/app_component.dart index 435b9aa..e559ab7 100644 --- a/lib/app_component.dart +++ b/lib/app_component.dart @@ -17,8 +17,13 @@ class AppComponent implements OnInit { @override void ngOnInit() { - canvas.context2D.setFillColorRgb(255, 0, 0); - canvas.context2D.fillRect(0, 0, 200, 150); + canvas.context2D.setFillColorRgb(200, 0, 0); + canvas.context2D.fillRect(0, 0, canvas.width, canvas.height); + canvas.context2D.setFillColorRgb(0, 255, 0); + canvas.context2D.fillText(''' + If you see this + the app is broken :( + ''', canvas.width/2, canvas.height/2); engine = new App(canvas); html.window.animationFrame.then(animFrame);