fix design issues

merge-requests/1/merge
Fatimah Alshammari 3 years ago
parent 07636bef77
commit 83b51ae589

@ -63,6 +63,7 @@ class _FamilyMembersState extends State<FamilyMembers> {
Expanded( Expanded(
child: getEmployeeContactsList.length != 0 child: getEmployeeContactsList.length != 0
? SingleChildScrollView( ? SingleChildScrollView(
padding: const EdgeInsets.all(21),
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
child: ListView.separated( child: ListView.separated(
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
@ -71,23 +72,7 @@ class _FamilyMembersState extends State<FamilyMembers> {
separatorBuilder: (cxt, index) => 12.height, separatorBuilder: (cxt, index) => 12.height,
itemCount: getEmployeeContactsList.length, itemCount: getEmployeeContactsList.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {
return Container( return Column(
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(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Column( Column(
@ -95,7 +80,7 @@ class _FamilyMembersState extends State<FamilyMembers> {
children: [ children: [
"${getEmployeeContactsList[index].cONTACTNAME}".toText16(isBold: true, color: MyColors.grey3AColor), "${getEmployeeContactsList[index].cONTACTNAME}".toText16(isBold: true, color: MyColors.grey3AColor),
"${getEmployeeContactsList[index].rELATIONSHIP}".toText11(isBold: true, color: MyColors.textMixColor), "${getEmployeeContactsList[index].rELATIONSHIP}".toText11(isBold: true, color: MyColors.textMixColor),
]).paddingOnly(left: 14, right: 14, top: 13, bottom: 11), ]),
const Divider( const Divider(
color: Color(0xffEFEFEF), color: Color(0xffEFEFEF),
thickness: 1, thickness: 1,
@ -126,7 +111,6 @@ class _FamilyMembersState extends State<FamilyMembers> {
style: TextStyle( style: TextStyle(
color: MyColors.grey67Color, color: MyColors.grey67Color,
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.bold,
), ),
), ),
], ],
@ -148,7 +132,6 @@ class _FamilyMembersState extends State<FamilyMembers> {
style: TextStyle( style: TextStyle(
color: MyColors.lightGreyColor, color: MyColors.lightGreyColor,
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.bold,
), ),
), ),
], ],
@ -179,7 +162,6 @@ class _FamilyMembersState extends State<FamilyMembers> {
style: TextStyle( style: TextStyle(
color: MyColors.redColor, color: MyColors.redColor,
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.bold,
), ),
), ),
], ],
@ -187,10 +169,9 @@ class _FamilyMembersState extends State<FamilyMembers> {
), ),
), ),
], ],
).paddingOnly(left: 14, right: 14), ),
], ],
), ).objectContainerView();
);
}), }),
) )
: Container(), : Container(),

Loading…
Cancel
Save