|
|
|
|
@ -156,43 +156,13 @@ class _RequestDeviceTransferState extends State<RequestDeviceTransfer> {
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
if (_formModel.device != null) 8.height,
|
|
|
|
|
if (_formModel.device != null) const ASubTitle("Asset Site"),
|
|
|
|
|
if (_formModel.device != null)
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 16),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AColors.inputFieldBackgroundColor,
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: const Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
borderRadius: BorderRadius.circular(AppStyle.borderRadius * AppStyle.getScaleFactor(context)),
|
|
|
|
|
// boxShadow: const [
|
|
|
|
|
// AppStyle.boxShadow
|
|
|
|
|
// ]
|
|
|
|
|
),
|
|
|
|
|
child: ASubTitle(_formModel.device?.hospital?.name),
|
|
|
|
|
),
|
|
|
|
|
if (_formModel.device != null) AdditionalAssetInfo(title: "Asset Site", value: _formModel.device.hospital?.name),
|
|
|
|
|
if (_formModel.device != null) 4.height,
|
|
|
|
|
if (_formModel.device != null && _formModel.device.destDepartmentName != null) const ASubTitle("Asset Department"),
|
|
|
|
|
if (_formModel.device != null && _formModel.device.destDepartmentName != null)
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 16),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AColors.inputFieldBackgroundColor,
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: const Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
borderRadius: BorderRadius.circular(AppStyle.borderRadius * AppStyle.getScaleFactor(context)),
|
|
|
|
|
// boxShadow: const [
|
|
|
|
|
// AppStyle.boxShadow
|
|
|
|
|
// ]
|
|
|
|
|
),
|
|
|
|
|
child: ASubTitle(_formModel.device.destDepartmentName.toString()),
|
|
|
|
|
),
|
|
|
|
|
if (_formModel.device != null) AdditionalAssetInfo(title: "Asset Department", value: _formModel.device.destDepartmentName),
|
|
|
|
|
if (_formModel.device != null) 4.height,
|
|
|
|
|
if (_formModel.device != null) AdditionalAssetInfo(title: "Asset Floor", value: _formModel.device.destFloor),
|
|
|
|
|
if (_formModel.device != null) 4.height,
|
|
|
|
|
if (_formModel.device != null) AdditionalAssetInfo(title: "Asset Room", value: _formModel.device.destRoom),
|
|
|
|
|
if (_formModel.device != null) 8.height,
|
|
|
|
|
// const SizedBox(height: 8,),
|
|
|
|
|
// const ASubTitle("Sender Department"),
|
|
|
|
|
@ -323,3 +293,31 @@ class _RequestDeviceTransferState extends State<RequestDeviceTransfer> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class AdditionalAssetInfo extends StatelessWidget {
|
|
|
|
|
final String title, value;
|
|
|
|
|
const AdditionalAssetInfo({@required this.title, @required this.value, Key key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
ASubTitle(title ?? ""),
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 16),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AColors.inputFieldBackgroundColor,
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: const Color(0xffefefef),
|
|
|
|
|
),
|
|
|
|
|
borderRadius: BorderRadius.circular(AppStyle.borderRadius * AppStyle.getScaleFactor(context)),
|
|
|
|
|
),
|
|
|
|
|
child: ASubTitle(value ?? ""),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|