r/FlutterDev • u/thegravity98ms2 • Sep 10 '26
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
4
Upvotes
1
u/thegravity98ms2 Sep 10 '26 edited Sep 11 '26
prev post on spatial 3D sphere + keyboard
https://www.reddit.com/r/FlutterDev/s/5QX6btwsre
Edit: to see motion play video on 1.5x
1
u/hamit_btn Sep 10 '26
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