pdf_viewer_plus 1.0.1 copy "pdf_viewer_plus: ^1.0.1" to clipboard
pdf_viewer_plus: ^1.0.1 copied to clipboard

A PDF viewer with enhanced features including a thumbnail sidebar for easy navigation.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:pdf_viewer_plus/pdf_viewer_plus.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'PDF Viewer Plus Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
      ),
      home: const PdfViewerExample(),
    );
  }
}

class PdfViewerExample extends StatelessWidget {
  const PdfViewerExample({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('PDF Viewer Plus Example'),
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
      ),
      body: const PdfViewer(
        pdfPath:
            'https://ontheline.trincoll.edu/images/bookdown/sample-local-pdf.pdf',
        initialSidebarOpen: false,
        sidebarWidth: 180,
        thumbnailHeight: 160,
        sidebarBackgroundColor: Color(0xFFEEEEEE),
      ),
    );
  }
}
5
likes
160
points
150
downloads

Publisher

unverified uploader

Weekly Downloads

A PDF viewer with enhanced features including a thumbnail sidebar for easy navigation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, pdfx

More

Packages that depend on pdf_viewer_plus