carp-dk / carp-dk/research.package
RPSignatureResult.signatureImage stores PNG bytes as Uint8List.toString() — bloats payload ~4–5× and floods logs
- Dominant language
- Dart
- Stars
- 52
- Forks
- 47
- Avg merge
- 5h 35m
- Merged PRs (30d)
- 4
Description
_signatureController?.toPngBytes().then((image) {
widget._onFinished(
RPSignatureResult.withParams(
_firstNameController.value.text,
_lastNameController.value.text,
// Converting the Uint8List into a string to make it compatible with JSON serialization
image.toString(),
),
);
});
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate RPSignatureResult and the signatureImage serialization path, starting with the shown toPngBytes callback. Inspect how the image value reaches JSON serialization and identify the project’s expected compact representation; done means PNG data is serialized without Uint8List.toString() and the resulting payload and logs are no longer inflated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100