A week ago i was looking to make some project of mine and it led me somehow to the Dart. At my opinion, the best way to get familiar with new development lang is to code some small program. So i would like to share three very basic examples i coded: 1. Chart Graph The usage is very simple: you provide data and...
I was looking for display image within canvas via dart. The problem is that the most trivial solution crossed my mind was : CanvasElement context = query("#canvasImage"); CanvasRenderingContext2D ctx = context.context2D; ImageElement image = new ImageElement(src: "myImage.jpg"); ctx.drawImage(image, x, y); But the problem that it is simply not working. So i came up with the following full functional solution :) import 'dart:html'; CanvasElement...