fzyzcjy / flutter_smooth
- пятница, 21 октября 2022 г. в 00:33:39
Achieve ~60 FPS, no matter how heavy the tree is to build/layout
(left = without smooth, right = smooth; captured by external camera to maximally demonstrate end-user perception. High-resolution video here.)
No matter how heavy the tree is to build/layout, it will run at (roughly) full FPS, feel smooth, has zero uncomfortable janks, with negligible overhead. (Detailed reports here)
Two possibilities:
Drop-in replacements: For common scenarios, add 6 characters ("Smooth") - ListView
becomes SmoothListView
, MaterialPageRoute
becomes SmoothMaterialPageRoute
.
Arbitrarily flexible builder: For complex cases, use SmoothBuilder(builder: ...)
and put whatever you want to be smooth inside the builder
.
The documentaiton - https://fzyzcjy.github.io/flutter_smooth/, with usage, demo, benchmark, insights, and more.
Note Feel free to create an issue if you have any questions/problems. I usually reply quickly within minutes if not hours, except for sleeping :)
Thanks goes to these wonderful people (emoji key following all-contributors specification):
fzyzcjy |
Ian Hickson |
Dan Field |
Jonah Williams |
gaaclarke |
Nayuta403 |
More specifically, thanks for all these contributions: