|
|
|
|
@ -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<GasRefillDetails> createState() => _GasRefillDetailsState();
|
|
|
|
|
@ -102,9 +102,11 @@ class _GasRefillDetailsState extends State<GasRefillDetails> {
|
|
|
|
|
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<GasRefillDetails> {
|
|
|
|
|
_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<GasRefillDetails> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
).then((value) {
|
|
|
|
|
_model.status= value;
|
|
|
|
|
_model.status = value;
|
|
|
|
|
});
|
|
|
|
|
setState(() {});
|
|
|
|
|
},
|
|
|
|
|
@ -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,
|
|
|
|
|
|