syncfusion_flutter_pdfviewer 18.4.30-beta copy "syncfusion_flutter_pdfviewer: ^18.4.30-beta" to clipboard
syncfusion_flutter_pdfviewer: ^18.4.30-beta copied to clipboard

outdated

Syncfusion Flutter PDF Viewer is used to display a PDF document 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',
    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,
      ),
    );
  }
}
986
likes
0
pub points
100%
popularity

Publisher

verified publishersyncfusion.com

Syncfusion Flutter PDF Viewer is used to display a PDF document seamlessly and efficiently.

Homepage

License

unknown (license)

Dependencies

async, flutter, path_provider, syncfusion_flutter_core, syncfusion_flutter_pdf, vector_math

More

Packages that depend on syncfusion_flutter_pdfviewer