Latest source merged from Syncfusion
This commit is contained in:
Родитель
edeba17b40
Коммит
760e58934e
|
@ -42,7 +42,7 @@ Widget build(BuildContext context) {
|
|||
],
|
||||
),
|
||||
body: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
key: _pdfViewerKey,
|
||||
),
|
||||
);
|
||||
|
@ -86,7 +86,7 @@ Widget build(BuildContext context) {
|
|||
],
|
||||
),
|
||||
body: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
controller: _pdfViewerController,
|
||||
onDocumentLoaded: (PdfDocumentLoadedDetails details) {
|
||||
_pdfBookmark = details.document.bookmarks[0];
|
||||
|
|
|
@ -103,7 +103,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf')));
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf')));
|
||||
}
|
||||
|
||||
{% endhighlight %}
|
||||
|
@ -244,7 +244,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
canShowScrollHead: false,
|
||||
canShowScrollStatus: false)));
|
||||
}
|
||||
|
@ -266,7 +266,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
canShowPaginationDialog: false)));
|
||||
}
|
||||
|
||||
|
@ -291,7 +291,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
onDocumentLoaded: (PdfDocumentLoadedDetails details) {
|
||||
print(details.document.pages.count);
|
||||
},
|
||||
|
@ -320,7 +320,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succintly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
onDocumentLoadFailed: (PdfDocumentLoadFailedDetails details) {
|
||||
AlertDialog(
|
||||
title: Text(details.error),
|
||||
|
|
|
@ -28,7 +28,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
interactionMode: PdfInteractionMode.selection)));
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
interactionMode: PdfInteractionMode.pan)));
|
||||
}
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ Widget build(BuildContext context) {
|
|||
title: Text('Syncfusion Flutter PDF Viewer'),
|
||||
),
|
||||
body: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf'),
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ Widget build(BuildContext context) {
|
|||
],
|
||||
),
|
||||
body: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
controller: _pdfViewerController,
|
||||
),
|
||||
);
|
||||
|
@ -67,7 +67,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
enableDoubleTapZooming: false)));
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
onZoomLevelChanged: (PdfZoomDetails details) {
|
||||
print(details.newZoomLevel);
|
||||
},
|
||||
|
|
|
@ -46,7 +46,7 @@ Widget build(BuildContext context) {
|
|||
],
|
||||
),
|
||||
body: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
controller: _pdfViewerController,
|
||||
),
|
||||
);
|
||||
|
@ -97,7 +97,7 @@ Widget build(BuildContext context) {
|
|||
],
|
||||
),
|
||||
body: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
controller: _pdfViewerController,
|
||||
),
|
||||
);
|
||||
|
@ -148,7 +148,7 @@ Widget build(BuildContext context) {
|
|||
],
|
||||
),
|
||||
body: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
controller: _pdfViewerController,
|
||||
),
|
||||
);
|
||||
|
@ -192,7 +192,7 @@ Widget build(BuildContext context) {
|
|||
],
|
||||
),
|
||||
body: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
controller: _pdfViewerController,
|
||||
),
|
||||
);
|
||||
|
@ -224,7 +224,7 @@ Widget build(BuildContext context) {
|
|||
return Scaffold(
|
||||
body: Container(
|
||||
child: SfPdfViewer.network(
|
||||
'http://ebooks.syncfusion.com/downloads/flutter-succinctly/flutter-succinctly.pdf',
|
||||
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
|
||||
onPageChanged: (PdfPageChangedDetails details) {
|
||||
print(details.newPageNumber);
|
||||
print(details.isFirstPage);
|
||||
|
|
Загрузка…
Ссылка в новой задаче