Use fade animation for show more tile progress bar

parent f58128c6
......@@ -350,7 +350,12 @@ class _ShowMoreItem extends StatelessWidget {
room.summary.joinedMembersCount - shownMembersCount,
),
),
subtitle: isLoading ? LinearProgressIndicator() : null,
subtitle: AnimatedSwitcher(
switchInCurve: Curves.decelerate,
switchOutCurve: Curves.decelerate.flipped,
duration: Duration(milliseconds: 300),
child: isLoading ? LinearProgressIndicator() : SizedBox(height: 6),
),
onTap: onTap,
);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment