From 83b51ae589a548f6145747c698c6181c5715c7a5 Mon Sep 17 00:00:00 2001 From: Fatimah Alshammari Date: Sun, 4 Sep 2022 10:14:17 +0300 Subject: [PATCH] fix design issues --- lib/ui/profile/family_members.dart | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/lib/ui/profile/family_members.dart b/lib/ui/profile/family_members.dart index f81a288..48535f8 100644 --- a/lib/ui/profile/family_members.dart +++ b/lib/ui/profile/family_members.dart @@ -63,6 +63,7 @@ class _FamilyMembersState extends State { Expanded( child: getEmployeeContactsList.length != 0 ? SingleChildScrollView( + padding: const EdgeInsets.all(21), scrollDirection: Axis.vertical, child: ListView.separated( scrollDirection: Axis.vertical, @@ -71,23 +72,7 @@ class _FamilyMembersState extends State { separatorBuilder: (cxt, index) => 12.height, itemCount: getEmployeeContactsList.length, itemBuilder: (context, index) { - return Container( - width: double.infinity, - margin: EdgeInsets.only(left: 21, right: 21, - ), - decoration: BoxDecoration( - boxShadow: [ - BoxShadow( - color: Colors.grey.withOpacity(0.5), - spreadRadius: 5, - blurRadius: 26, - offset: Offset(0, 3), - ), - ], - color: Colors.white, - borderRadius: BorderRadius.circular(10.0), - ), - child: Column( + return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Column( @@ -95,7 +80,7 @@ class _FamilyMembersState extends State { children: [ "${getEmployeeContactsList[index].cONTACTNAME}".toText16(isBold: true, color: MyColors.grey3AColor), "${getEmployeeContactsList[index].rELATIONSHIP}".toText11(isBold: true, color: MyColors.textMixColor), - ]).paddingOnly(left: 14, right: 14, top: 13, bottom: 11), + ]), const Divider( color: Color(0xffEFEFEF), thickness: 1, @@ -126,7 +111,6 @@ class _FamilyMembersState extends State { style: TextStyle( color: MyColors.grey67Color, fontSize: 12, - fontWeight: FontWeight.bold, ), ), ], @@ -148,7 +132,6 @@ class _FamilyMembersState extends State { style: TextStyle( color: MyColors.lightGreyColor, fontSize: 12, - fontWeight: FontWeight.bold, ), ), ], @@ -179,7 +162,6 @@ class _FamilyMembersState extends State { style: TextStyle( color: MyColors.redColor, fontSize: 12, - fontWeight: FontWeight.bold, ), ), ], @@ -187,10 +169,9 @@ class _FamilyMembersState extends State { ), ), ], - ).paddingOnly(left: 14, right: 14), + ), ], - ), - ); + ).objectContainerView(); }), ) : Container(),