Skip to content

Instantly share code, notes, and snippets.

@yjbanov
Created January 19, 2024 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yjbanov/1540f4ae77c15c7df3616f40a3cc4b4e to your computer and use it in GitHub Desktop.
Save yjbanov/1540f4ae77c15c7df3616f40a3cc4b4e to your computer and use it in GitHub Desktop.
astonishing-zephyr-8054

astonishing-zephyr-8054

Created with <3 with dartpad.dev.

import 'dart:ui' as ui;
Future<void> main() async {
var dispatcher = ui.PlatformDispatcher.instance;
dispatcher.onDrawFrame = () {
var sb = ui.SceneBuilder();
var scene = sb.build();
dispatcher.implicitView!.render(scene);
};
ui.PlatformDispatcher.instance.scheduleFrame();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment