syncfusion_flutter_pdfviewer_web 19.4.56-beta copy "syncfusion_flutter_pdfviewer_web: ^19.4.56-beta" to clipboard
syncfusion_flutter_pdfviewer_web: ^19.4.56-beta copied to clipboard

Platformweb
unlisted

Web 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(MaterialApp(
    title: 'Syncfusion PDF Viewer Demo for Web',
    home: HomePage(),
  ));
}

/// Represents Homepage for Navigation
class HomePage extends StatefulWidget {
  @override
  _HomePage createState() => _HomePage();
}

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

  @override
  void initState() {
    super.initState();
  }

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

Publisher

verified publishersyncfusion.com

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins, js, meta, syncfusion_flutter_pdfviewer_platform_interface

More

Packages that depend on syncfusion_flutter_pdfviewer_web