1
0
mirror of https://github.com/nisrulz/flutter-examples.git synced 2025-11-09 21:19:55 +00:00

view_pdf_file example added (#57)

* view_pdf_file example added

* made revelent changes

changed package, example of both load pdf from asset and url, added link from example in readme

* added example view_pdf_file

* Added View PDF File example

* minor changes
This commit is contained in:
Tekeshwar Singh
2020-10-06 14:00:19 +05:30
committed by GitHub
parent 23837f9048
commit 24955aeac5
71 changed files with 1533 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
import 'package:advance_pdf_viewer/advance_pdf_viewer.dart';
import 'package:flutter/material.dart';
class ViewPDF extends StatelessWidget {
final PDFDocument doc;
ViewPDF({
@required this.doc,
});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Example'),
),
body: Center(child: PDFViewer(document: doc)),
);
}
}