NBRG PDF viewer for flutter

Android and iOS working pdf viewer!

NOTE: This package is a fork of the original package provided by alveliu named flutter_full_pdf_viewer which is available at this url. We have added support for a bit of more features on android, on iOS unfortunately, its not implemented. Also, we have added support for null safety. Thank you for using this package, all credits goes to the creator Alveliu. Thank you.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  nbrg_pdf_viewer_flutter: ^2.0.0-nullsafety.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:nbrg_pdf_viewer_flutter/nbrg_pdf_viewer_flutter.dart';
import 'package:nbrg_pdf_viewer_flutter/nbrg_pdf_viewer_flutter_plugin.dart';
import 'package:nbrg_pdf_viewer_flutter/nbrg_pdf_viewer_flutter_scaffold.dart';

4. Informations for Release on Android

You have to follow first these steps: https://flutter.io/docs/deployment/android After that you have to add ndk filters to your release config:

    buildTypes {

        release {
            signingConfig signingConfigs.release
            minifyEnabled true
            useProguard true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            ndk {
                abiFilters 'armeabi-v7a'
            }
        }

        debug {
            minifyEnabled false
            useProguard false
        }
    }

Now your release app should work.

Libraries

nbrg_pdf_viewer_flutter
nbrg_pdf_viewer_flutter_plugin
nbrg_pdf_viewer_flutter_scaffold
viewer_params