Created with <3 with dartpad.dev.
Created
January 19, 2024 00:24
-
-
Save yjbanov/1540f4ae77c15c7df3616f40a3cc4b4e to your computer and use it in GitHub Desktop.
astonishing-zephyr-8054
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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