Latest source merged from Syncfusion

This commit is contained in:
pipeline 2021-08-18 07:53:48 -07:00
Родитель edeba17b40
Коммит 760e58934e
6 изменённых файлов: 18 добавлений и 18 удалений

Просмотреть файл

@ -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);