fix(mobile-app): adjust signature image ratio to match PDF field

The signature image was 600x200 (3:1 ratio) but the PDF signature
field is 92x51 (1.8:1 ratio). This caused the signature to be scaled
down to only 60% of the field height, making it appear too small.

Changed signature image dimensions to 460x255 (~1.8:1) to better
match the PDF field proportions and maximize signature size.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-03 23:22:16 -08:00
parent 50f960ecea
commit 5ad21ee097
1 changed files with 4 additions and 2 deletions

View File

@ -162,8 +162,10 @@ class _SignaturePadState extends State<SignaturePad> {
Future<Uint8List?> _renderSignatureImage() async {
try {
//
const width = 600.0;
const height = 200.0;
// PDF签名字段比例92:51 1.8:1
// 使
const width = 460.0;
const height = 255.0;
final recorder = ui.PictureRecorder();
final canvas = Canvas(recorder, Rect.fromLTWH(0, 0, width, height));