Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<meta charset="UTF-8">
<style type="text/css">
#loader {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
#loader h1 {
color: black;
font-family: Arial, Helvetica, sans-serif;
font-size: 32px;
line-height: normal;
<div id="loader">
Please wait... application is loading
<script src="main.dart.js" type="application/javascript"></script>
import 'dart:html';
void main() {
Future.delayed(Duration(seconds: 5), () {
print("done sleeping");
// remove loader
// hide loader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment