Fix pm entry empty values when scroll

main_design2.0
zaid_daoud 2 years ago
parent 3e314447c6
commit 1c9101d8ab

@ -36,11 +36,12 @@ class _PentryInfoFormState extends State<PentryInfoForm> {
widget.model?.files ??= [];
final subtitle = AppLocalization.of(context).subtitle;
final userProvider = Provider.of<UserProvider>(context);
return ListView(
return Padding(
padding: EdgeInsets.only(
top: 12 * AppStyle.getScaleFactor(context), left: 12 * AppStyle.getScaleFactor(context), right: 12 * AppStyle.getScaleFactor(context), bottom: 80 * AppStyle.getScaleFactor(context)),
shrinkWrap: true,
physics: const ClampingScrollPhysics(),
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
const SizedBox(
height: 8,
@ -188,12 +189,12 @@ class _PentryInfoFormState extends State<PentryInfoForm> {
const ASubTitle("Engineer Signature"),
ESignature(
oldSignature: widget.model.signatureEngineer,
newSignature: widget.model.localNurseSignature,
newSignature: widget.model.localEngineerSignature,
onChange: (signature) {
if (signature == null || signature.isEmpty) {
return;
}
widget.model.localNurseSignature = signature;
widget.model.localEngineerSignature = signature;
widget.model.signatureEngineer = "${DateTime.now().toIso8601String()}.png|${base64Encode(signature)}";
},
),
@ -201,6 +202,8 @@ class _PentryInfoFormState extends State<PentryInfoForm> {
height: 8,
),
],
),
),
);
}
}

Loading…
Cancel
Save