Flutter PDF Viewer Platform Interface library

A common platform interface package for the Syncfusion Flutter PDF Viewer plugin.

This interface allows platform-specific implementations of the syncfusion_flutter_pdfviewer plugin, as well as the plugin itself, to ensure they are supporting the same interface.

Usage

To implement a new platform-specific implementation of syncfusion_flutter_pdfviewer, extend PdfViewerPlatform with an implementation that performs the platform-specific behavior, and when you register your plugin, set the default PdfViewerPlatform by calling PdfViewerPlatform.instance = SyncfusionFlutterPdfViewerPlugin().

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add syncfusion_flutter_pdfviewer_platform_interface

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):


dependencies:
  syncfusion_flutter_pdfviewer_platform_interface: ^19.2.55-beta

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:syncfusion_flutter_pdfviewer_platform_interface/pdfviewer_platform_interface.dart';

#fluter  #dart #mobile-apps

Flutter PDF Viewer Platform Interface Library
2.65 GEEK