native_pdf_view 1.0.2 copy "native_pdf_view: ^1.0.2" to clipboard
native_pdf_view: ^1.0.2 copied to clipboard

outdated

Flutter Plugin to render PDF files on both Android and iOS devices. Provides a Widget to render the pages using a PageView.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:native_pdf_view/native_pdf_view.dart';
import 'package:photo_view/photo_view.dart';

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('NativePDFView example app'),
        ),
        body: Container(
          child: NativePDFView(
            pdfFile: 'assets/sample.pdf',
            isAsset: true,
            pageBuilder: (imageFile) => PhotoView(
              imageProvider: FileImage(imageFile),
              initialScale: .40,
              maxScale: 1.75,
              minScale: .40,
              backgroundDecoration: BoxDecoration(
                color: Colors.white,
              ),
            ),
          ),
        ),
      ),
    );
  }
}

void main() => runApp(MyApp());
401
likes
0
points
577
downloads

Publisher

verified publisherserge.software

Weekly Downloads

Flutter Plugin to render PDF files on both Android and iOS devices. Provides a Widget to render the pages using a PageView.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, meta

More

Packages that depend on native_pdf_view