Skip to content

Commit

Permalink
animation of Activity pages
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Dec 2, 2022
1 parent 517604f commit d7cc8ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/module/activity/page/list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ class _ActivityListState extends State<ActivityList> {
gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent(
maxCrossAxisExtent: extent,
),
showItemDuration: const Duration(milliseconds: 300),
showItemInterval: const Duration(milliseconds: 20),
showItemInterval: const Duration(milliseconds: 40),
itemBuilder: (ctx, index, animation) => buildAnimatedActivityCard(ctx, activities[index], animation),
);
});
Expand Down
3 changes: 1 addition & 2 deletions lib/module/activity/page/mine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ class _MinePageState extends State<MinePage> {
controller: _scrollController,
itemCount: activities.length,
physics: const BouncingScrollPhysics(),
showItemDuration: const Duration(milliseconds: 300),
showItemInterval: const Duration(milliseconds: 20),
showItemInterval: const Duration(milliseconds: 40),
itemBuilder: (ctx, index, animation) => buildAnimatedJoinedActivity(ctx, activities[index], animation),
),
);
Expand Down

0 comments on commit d7cc8ea

Please sign in to comment.