fzyzcjy/flutter_smooth
소개
트리의 빌드와 레이아웃이 아무리 복잡해도 약 60 FPS를 달성합니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- -2
- in 7 days
- -4
- in 15 days
- -6
- in 1 month
- -10
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalflutter_smooth
🎼 3-second video
https://user-images.githubusercontent.com/5236035/196152010-09a2d829-c94c-48b4-80ed-0633430329ec.mp4
(left = without smooth, right = smooth; captured by external camera to maximally demonstrate end-user perception. High-resolution video here. Deliberately made it super janky for clear demonstration.)
📚 1-minute explanation
Purpose
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)
Usage
Two possibilities:
Drop-in replacements: For common scenarios, add 6 characters ("Smooth") -
ListViewbecomesSmoothListView,MaterialPageRoutebecomesSmoothMaterialPageRoute.Arbitrarily flexible builder: For complex cases, use
SmoothBuilder(builder: ...)and put whatever you want to be smooth inside thebuilder.
🚀 What's next
The documentation - 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 :)
💭 Current status
Now I am working on pull requests to Flutter framework and engine (i.e. not directly modifying code in this repository), such that you can use this package with standard stable Flutter. An auto-generated list of PRs can be seen here, or conversations here.
Contributors
Thanks goes to these wonderful people (emoji key following all-contributors specification):
fzyzcjy 💻 📖 🤔 |
Ian Hickson 🤔 |
Dan Field 🤔 |
Jonah Williams 🤔 |
gaaclarke 🤔 |
Nayuta403 📖 |
pajlada 📖 |
More specifically, thanks for all these contributions:
- @Hixie (Flutter team): Consider details of my several proposals to the Flutter framework/engine such as requiring zero-overhead principle. Construct concrete cases when the initial proposal becomes fragile.
- @dnfield (Flutter team): Provide a canonical janky case inside Flutter framework to help prototyping. Point out slowness of sync generators which avoids detouring.
- @jonahwilliams (Flutter team): Elaborate shortcomings of the old gesture system proposal (later I made a much more natural one).
- @gaaclarke (Flutter team): Share his pet theory that slowness is caused by memory locality, indicating another potential application of the package.
- @Nayuta403: Fix link.
- @pajlada: Fix typo.
관련 프로젝트 살펴보기
불러오는 중…