When I add this piece of code:
return Scaffold(
appBar: AppBar(
title: Text('Welcome, ${userName}'),
),
body: SfPdfViewer.asset('assets/Form.pdf')
);
I get the following error:
/C:/Users/ziadg/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-25.2.5/lib/src/form_fields/pdf_signature.dart:579:25: Error: Couldn't find constructor 'WidgetStatePropertyAll'.
? const WidgetStatePropertyAll<Color>(Colors.transparent)
^^^^^^^^^^^^^^^^^^^^^^
/C:/Users/ziadg/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-25.2.5/lib/src/control/pdfviewer_canvas.dart:604:36: Error: The getter 'WidgetStateProperty' isn't defined for the class 'CanvasRenderBox'.
- 'CanvasRenderBox' is from 'package:syncfusion_flutter_pdfviewer/src/control/pdfviewer_canvas.dart' ('/C:/Users/ziadg/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-25.2.5/lib/src/control/pdfviewer_canvas.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'WidgetStateProperty'.
padding: WidgetStateProperty.all(
^^^^^^^^^^^^^^^^^^^
/C:/Users/ziadg/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-25.2.5/lib/src/control/pdfviewer_canvas.dart:637:38: Error: The getter 'WidgetStateProperty' isn't defined for the class 'CanvasRenderBox'.
- 'CanvasRenderBox' is from 'package:syncfusion_flutter_pdfviewer/src/control/pdfviewer_canvas.dart' ('/C:/Users/ziadg/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-25.2.5/lib/src/control/pdfviewer_canvas.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'WidgetStateProperty'.
padding: WidgetStateProperty.all(
^^^^^^^^^^^^^^^^^^^