diff --git a/lib/views/pages/user/gas_refill/gas_refill_details.dart b/lib/views/pages/user/gas_refill/gas_refill_details.dart index 80e3c4c5..af485780 100644 --- a/lib/views/pages/user/gas_refill/gas_refill_details.dart +++ b/lib/views/pages/user/gas_refill/gas_refill_details.dart @@ -27,7 +27,7 @@ import '../../../app_style/colors.dart'; class GasRefillDetails extends StatefulWidget { GasRefillModel model; - GasRefillDetails({Key key, this.model}) : super(key: key); + GasRefillDetails({Key key, this.model}) : super(key: key); @override State createState() => _GasRefillDetailsState(); @@ -102,9 +102,11 @@ class _GasRefillDetailsState extends State { padding: const EdgeInsets.symmetric(horizontal: 0, vertical: 4), child: Row( children: [ - ABackButton(onPressed: (){ - Navigator.of(context).pop(_model); - },), + ABackButton( + onPressed: () { + Navigator.of(context).pop(_model); + }, + ), Expanded( child: Center( child: Text( @@ -125,7 +127,7 @@ class _GasRefillDetailsState extends State { _model.fromGasRefillModel(widget.model); print(widget.model.startDate); // setState(() {}); - Navigator.push( + Navigator.push( context, MaterialPageRoute( builder: (context) => RequestGasRefill( @@ -133,7 +135,7 @@ class _GasRefillDetailsState extends State { ), ), ).then((value) { - _model.status= value; + _model.status = value; }); setState(() {}); }, @@ -170,10 +172,18 @@ class _GasRefillDetailsState extends State { 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,