syncfusion_pdfviewer_linux 30.1.37 copy "syncfusion_pdfviewer_linux: ^30.1.37" to clipboard
syncfusion_pdfviewer_linux: ^30.1.37 copied to clipboard

PlatformLinux

Linux platform implementation of the Flutter PDF Viewer library that lets you view the PDF documents seamlessly and efficiently.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart';

void main() {
  runApp(
    const MaterialApp(
      title: 'Syncfusion PDF Viewer Demo for Linux',
      home: HomePage(),
    ),
  );
}

/// Represents Homepage for Navigation
class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePage();
}

class _HomePage extends State<HomePage> {
  final GlobalKey<SfPdfViewerState> _pdfViewerKey = GlobalKey();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Syncfusion Flutter PDF Viewer'),
        actions: <Widget>[
          IconButton(
            icon: const Icon(Icons.bookmark, color: Colors.white),
            onPressed: () {
              _pdfViewerKey.currentState?.openBookmarkView();
            },
          ),
        ],
      ),
      body: SfPdfViewer.network(
        'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
        key: _pdfViewerKey,
      ),
    );
  }
}
0
likes
140
points
206
downloads

Publisher

unverified uploader

Weekly Downloads

Linux platform implementation of the Flutter PDF Viewer library that lets you view the PDF documents seamlessly and efficiently.

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on syncfusion_pdfviewer_linux