add start and end time to gas refill details

design_3.0_demo_module
zaid_daoud 3 years ago
parent 2549157eee
commit 4cbedc0b60

@ -102,9 +102,11 @@ class _GasRefillDetailsState extends State<GasRefillDetails> {
padding: const EdgeInsets.symmetric(horizontal: 0, vertical: 4),
child: Row(
children: [
ABackButton(onPressed: (){
ABackButton(
onPressed: () {
Navigator.of(context).pop(_model);
},),
},
),
Expanded(
child: Center(
child: Text(
@ -170,10 +172,18 @@ class _GasRefillDetailsState extends State<GasRefillDetails> {
title: _subtitle.startDate,
info: _model.startDate == null ? null : DateFormat.yMd().format(_model.startDate),
),
RequestInfoRow(
title: "Start Time",
info: _model.startDate == null ? null : DateFormat.Hms().format(_model.startDate),
),
RequestInfoRow(
title: _subtitle.endDate,
info: _model.endDate == null ? null : DateFormat.yMd().format(_model.endDate),
),
RequestInfoRow(
title: "End Time",
info: _model.endDate == null ? null : DateFormat.Hms().format(_model.endDate),
),
_enableEdit
? Column(
crossAxisAlignment: CrossAxisAlignment.start,

Loading…
Cancel
Save