From e20011d42ec413042ae27aa7ecba49e6c8e516d7 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 15 Jun 2019 16:06:20 +0200 Subject: [PATCH] Can refresh user page --- lib/ui/routes/user_page_route.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ui/routes/user_page_route.dart b/lib/ui/routes/user_page_route.dart index 095e0dc..e456f65 100644 --- a/lib/ui/routes/user_page_route.dart +++ b/lib/ui/routes/user_page_route.dart @@ -79,8 +79,11 @@ class _UserPageRouteState extends State { if (_status == _PageStatus.ERROR) return _buildError(); return Scaffold( - body: CustomScrollView( - slivers: [_buildHeader(), _buildBody()], + body: RefreshIndicator( + child: CustomScrollView( + slivers: [_buildHeader(), _buildBody()], + ), + onRefresh: _getUserInfo, ), ); }