From 78e75cffdb696b6b41b0ed7965e7f816363cf535 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 17 Apr 2020 14:06:01 +0200 Subject: [PATCH] Improve widget --- lib/ui/screens/notifications_screen.dart | 42 ++++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/ui/screens/notifications_screen.dart b/lib/ui/screens/notifications_screen.dart index de95ec4..5052a8b 100644 --- a/lib/ui/screens/notifications_screen.dart +++ b/lib/ui/screens/notifications_screen.dart @@ -76,27 +76,27 @@ class _NotificationsScreenState extends State { child: CircularProgressIndicator(), ); - return Column( - children: [ - Expanded( - child: Stack(children: [ - RefreshIndicator( - key: _refreshKey, - child: _buildBody(), - onRefresh: _loadList, - ), - // Add conversation button - Positioned( - right: 20.0, - bottom: 20.0, - child: FloatingActionButton( - onPressed: () => _deleteAllNotifications(), - child: Icon(Icons.delete), - ), - ), - ]), - ) - ], + return Container( + height: double.infinity, + child: Stack(children: [ + Container( + height: double.infinity, + child: RefreshIndicator( + key: _refreshKey, + child: _buildBody(), + onRefresh: _loadList, + ), + ), + // Add conversation button + Positioned( + right: 20.0, + bottom: 20.0, + child: FloatingActionButton( + onPressed: () => _deleteAllNotifications(), + child: Icon(Icons.delete), + ), + ), + ]), ); }