Skip to content

Instantly share code, notes, and snippets.

Last active Jun 7, 2022
What would you like to do?
Dart Pad with html index.html
<h1 id="header">empty</h1>
import 'dart:html';
void main() {
final header = querySelector('#header');
header?.text = "Hello, World!";
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
width: 100%;
height: 100%;
h1 {
color: white;
font-family: Arial, Helvetica, sans-serif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment