Skip to content

Commit

Permalink
Update the benchmark demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JsouLiang committed May 20, 2022
1 parent 2bf7064 commit 8b267cb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class _RasterCacheUseMemoryState extends State<RasterCacheUseMemory>
void initState() {
super.initState();
_controller.addListener(() {
if (_controller.offset < 20) {
_controller.animateTo(150,
if (_controller.offset < 5) {
_controller.animateTo(20,
duration: const Duration(milliseconds: 1000), curve: Curves.ease);
} else if (_controller.offset > 130) {
} else if (_controller.offset >= 19) {
_controller.animateTo(0,
duration: const Duration(milliseconds: 1000), curve: Curves.ease);
}
Expand Down

0 comments on commit 8b267cb

Please sign in to comment.