|
|
|
|
@ -298,27 +298,27 @@ class _RequestGasRefillState extends State<RequestGasRefill> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 8),
|
|
|
|
|
if (_userProvider.user?.type == UsersTypes.normal_user || widget.gasRefillModel != null)
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
|
|
children: [
|
|
|
|
|
const ASubTitle("Expected Date"),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8 * AppStyle.getScaleFactor(context),
|
|
|
|
|
),
|
|
|
|
|
ADateTimePicker(
|
|
|
|
|
date: _gasRefillProvider.expectedDateTime,
|
|
|
|
|
from: DateTime.now().subtract(const Duration(days: 365)),
|
|
|
|
|
to: DateTime.now().add(const Duration(days: 365)),
|
|
|
|
|
onDateTimePicker: (date) {
|
|
|
|
|
_gasRefillProvider.expectedDateTime = date;
|
|
|
|
|
_formModel.expectedDate = _gasRefillProvider.expectedDateTime;
|
|
|
|
|
setState(() {});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
//const SizedBox(height: 8),
|
|
|
|
|
// if (_userProvider.user?.type == UsersTypes.normal_user || widget.gasRefillModel != null)
|
|
|
|
|
// Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
|
|
// children: [
|
|
|
|
|
// const ASubTitle("Expected Date"),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 8 * AppStyle.getScaleFactor(context),
|
|
|
|
|
// ),
|
|
|
|
|
// ADateTimePicker(
|
|
|
|
|
// date: _gasRefillProvider.expectedDateTime,
|
|
|
|
|
// from: DateTime.now().subtract(const Duration(days: 365)),
|
|
|
|
|
// to: DateTime.now().add(const Duration(days: 365)),
|
|
|
|
|
// onDateTimePicker: (date) {
|
|
|
|
|
// _gasRefillProvider.expectedDateTime = date;
|
|
|
|
|
// _formModel.expectedDate = _gasRefillProvider.expectedDateTime;
|
|
|
|
|
// setState(() {});
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// if (_userProvider.user?.type == UsersTypes.engineer)
|
|
|
|
|
// Column(
|
|
|
|
|
// children: [
|
|
|
|
|
|