From 9afeecf9fa9d0c6feb3d3c0d98ab2314f674412c Mon Sep 17 00:00:00 2001 From: Sultan Khan Date: Sun, 16 Aug 2020 16:16:13 +0300 Subject: [PATCH] new --- lib/pages/family/my-family.dart | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/lib/pages/family/my-family.dart b/lib/pages/family/my-family.dart index 93638e52..83152e36 100644 --- a/lib/pages/family/my-family.dart +++ b/lib/pages/family/my-family.dart @@ -30,7 +30,7 @@ class _MyFamily extends State { child: SingleChildScrollView( padding: EdgeInsets.all(20), child: Container( - height: SizeConfig.realScreenHeight * .9, + height: SizeConfig.realScreenHeight, width: SizeConfig.realScreenWidth, child: Stack( children: [ @@ -56,7 +56,7 @@ class _MyFamily extends State { Widget myFamilyDetails() { return Padding( - padding: EdgeInsets.only(top: 40), + padding: EdgeInsets.only(top: 50), child: Column( children: [ Row( @@ -95,16 +95,20 @@ class _MyFamily extends State { children: snapshot .data.getAllSharedRecordsByStatusList .map((result) { - return Padding( - padding: EdgeInsets.all(10), - child: Row( - children: [ - Expanded( - flex: 3, child: Text(result.patientName)), - Expanded(flex: 2, child: Icon(Icons.group)), - Expanded(flex: 1, child: Icon(Icons.delete)), - ], - )); + return result.status == 3 + ? Padding( + padding: EdgeInsets.all(10), + child: Row( + children: [ + Expanded( + flex: 3, + child: Text(result.patientName)), + Expanded(flex: 2, child: Icon(Icons.group)), + Expanded( + flex: 1, child: Icon(Icons.delete)), + ], + )) + : SizedBox(); }).toList()); } },