divider changed

pull/61/head
tahaalam 1 month ago
parent 512628fb8b
commit b05b03a6f6

@ -269,23 +269,22 @@ class LabResultDetails extends StatelessWidget {
Widget labHistoryList(LabRangeViewModel model, LabViewModel labmodel) {
return SizedBox(
height: 180.h,
child: ListView.builder(
child: ListView.separated(
padding: EdgeInsets.zero,
itemCount: labmodel.filteredGraphValues.length,itemBuilder: (context, index){
var data = labmodel.filteredGraphValues.reversed.toList()[index];
return Column(
children: [
LabHistoryItem(
return LabHistoryItem(
dayNameAndDate: labmodel.getFormattedDate(data.time),
result: data.actualValue,
assetUrl: labmodel.getAssetUrlWRTResult(data.refernceValue),
shouldRotateIcon: labmodel.getRotationWRTResult(data.refernceValue),
),
if(index != labmodel.filteredGraphValues.length-1)
Divider(color: AppColors.spacerLineColor,thickness: 1.h,)
],
);
}),
},
separatorBuilder: (_, __) => Divider(
color: AppColors.spacerLineColor,
thickness: 1.h,
).paddingOnly(top: 4.h, bottom: 4.h),
),
);
}
}

Loading…
Cancel
Save