We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error: Type 'PanAxis' not found. in Syncfusion Flutter Core

Whenever i run the flutter run command this issue will appear

../../../../Android/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-20.4.50/lib/src/widgets/interactive_scroll_viewer.dart:59:9: Error: Type 'PanAxis' not found.

  final PanAxis panAxis;


../../../../Android/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-20.4.50/lib/src/widgets/interactive_scroll_viewer.dart:15:22: Error: Undefined name 'PanAxis'.

      this.panAxis = PanAxis.free,


../../../../Android/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-20.4.50/lib/src/widgets/interactive_scroll_viewer.dart:59:9: Error: 'PanAxis' isn't a type.

  final PanAxis panAxis;


../../../../Android/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-20.4.50/lib/src/widgets/interactive_scroll_viewer.dart:299:9: Error: No named parameter with the name 'panAxis'.

        panAxis: widget.panAxis,


../../../../Android/flutter/packages/flutter/lib/src/widgets/interactive_viewer.dart:62:3: Context: Found this candidate, but the arguments don't match.



1 Reply

DR Deepika Ravi Syncfusion Team February 17, 2023 06:26 AM UTC

Hi klakshmanan48,

The reported issue is caused by a recent upgrade to the Flutter version. In previous versions, the alignPanAxis property was a Boolean, but in version 3.7.0, it was changed to an Enum type. To resolve this issue, upgrade the Flutter SDK to the latest version [3.7.0] and also upgrade the latest Syncfusion package version [20.4.50].

PdfViewer package: https://pub.dev/packages/syncfusion_flutter_core/versions/20.4.50

Flutter SDK: https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.7.0-stable.zip


Deepika R

Live Chat Icon For mobile
Up arrow icon