You can easily display a message box with:
window.alert('test');
don't forget about it at the top of the file:
import 'dart:html';
This will behave as a warning function in JavaScript. If you want to add buttons to the message window (others, and then the "ok" button by default), you will need to create your own window, which will not be very difficult. You create an element that you add to the body of the document. This element must be absolute. Adding an overlay in front of your document will be useful to prevent users from clicking on the page.
this is in javascript, but it is useful to know what to do with dom and css:
http://raventools.com/blog/create-a-modal-dialog-using-css-and-javascript/
source share