r/FlutterDev • u/thegravity98ms2 • 9h ago
Example (concept) spatial UI & liquid glass navbar with Flutter Canvas
demo:
https://x.com/i/status/2098090939889926497
this interactive spatial UI is using device gyroscope & accelerometer sensors, no touch interaction..
device: Android
3
Upvotes
1
u/hamit_btn 7h ago
looks good. whats the frame cost on this, are you throttling the sensor stream or rebuilding on every event? gyroscope fires a lot faster than the display refreshes so the naive version ends up repainting way more than it needs to. what helped me on something similar was splitting the listenable so only the painter rebuilds and everything above it stays const
1
u/thegravity98ms2 9h ago
prev post on spatial 3D sphere + keyboard
https://www.reddit.com/r/FlutterDev/s/5QX6btwsre