passaggio a pdfrx al posto di pdfx finalmente. Ora i pdf in flux sono compatibili con tutte le piattaforme
This commit is contained in:
1 parent
9b7b4beaa8
commit
8e396a7885
10 files changed
+158
-111
No files matched your search
@@ -2,7 +2,7 @@ import 'dart:typed_data';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flux/core/utils/extensions.dart';
|
import 'package:flux/core/utils/extensions.dart';
|
||||||
import 'package:flux/core/utils/functions.dart';
|
import 'package:flux/core/utils/functions.dart';
|
||||||
import 'package:pdfx/pdfx.dart';
|
import 'package:pdfrx/pdfrx.dart';
|
||||||
import 'package:internet_file/internet_file.dart';
|
import 'package:internet_file/internet_file.dart';
|
||||||
|
|
||||||
class PdfViewerWidget extends StatefulWidget {
|
class PdfViewerWidget extends StatefulWidget {
|
||||||
@@ -20,7 +20,7 @@ class PdfViewerWidget extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _PdfViewerWidgetState extends State<PdfViewerWidget> {
|
class _PdfViewerWidgetState extends State<PdfViewerWidget> {
|
||||||
late PdfControllerPinch _pdfController;
|
Uint8List? _pdfData;
|
||||||
bool _isLoading = true;
|
bool _isLoading = true;
|
||||||
String? _errorMessage;
|
String? _errorMessage;
|
||||||
|
|
||||||
@@ -45,11 +45,12 @@ class _PdfViewerWidgetState extends State<PdfViewerWidget> {
|
|||||||
throw Exception("Nessun documento trovato");
|
throw Exception("Nessun documento trovato");
|
||||||
}
|
}
|
||||||
|
|
||||||
_pdfController = PdfControllerPinch(
|
if (mounted) {
|
||||||
document: PdfDocument.openData(pdfData),
|
setState(() {
|
||||||
);
|
_pdfData = pdfData;
|
||||||
|
_isLoading = false;
|
||||||
if (mounted) setState(() => _isLoading = false);
|
});
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -60,12 +61,6 @@ class _PdfViewerWidgetState extends State<PdfViewerWidget> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
|
||||||
void dispose() {
|
|
||||||
_pdfController.dispose();
|
|
||||||
super.dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
if (_isLoading) {
|
if (_isLoading) {
|
||||||
@@ -87,7 +82,10 @@ class _PdfViewerWidgetState extends State<PdfViewerWidget> {
|
|||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: PdfViewPinch(controller: _pdfController),
|
body: PdfViewer.data(
|
||||||
|
_pdfData!,
|
||||||
|
sourceName: widget.storagePath ?? 'document.pdf',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,8 +13,9 @@ import 'package:flux/features/attachments/blocs/attachments_bloc.dart';
|
|||||||
import 'package:get_it/get_it.dart';
|
import 'package:get_it/get_it.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import 'package:flux/features/attachments/models/attachment_model.dart';
|
import 'package:flux/features/attachments/models/attachment_model.dart';
|
||||||
|
import 'dart:ui' as ui;
|
||||||
import 'package:pdf/widgets.dart' as pw;
|
import 'package:pdf/widgets.dart' as pw;
|
||||||
import 'package:pdfx/pdfx.dart' as px; // Isoliamo pdfx
|
import 'package:pdfrx/pdfrx.dart' as pdfrx;
|
||||||
|
|
||||||
class _ExportItem {
|
class _ExportItem {
|
||||||
final Uint8List bytes;
|
final Uint8List bytes;
|
||||||
@@ -353,20 +354,28 @@ class _SharedAttachmentsSectionState extends State<SharedAttachmentsSection> {
|
|||||||
if (fileBytes == null) continue;
|
if (fileBytes == null) continue;
|
||||||
|
|
||||||
if (file.extension == 'pdf') {
|
if (file.extension == 'pdf') {
|
||||||
final document = await px.PdfDocument.openData(fileBytes);
|
final document = await pdfrx.PdfDocument.openData(
|
||||||
for (int i = 1; i <= document.pagesCount; i++) {
|
fileBytes,
|
||||||
final page = await document.getPage(i);
|
sourceName: file.name,
|
||||||
|
);
|
||||||
|
for (final page in document.pages) {
|
||||||
final pageImage = await page.render(
|
final pageImage = await page.render(
|
||||||
width: page.width * 2,
|
fullWidth: page.width * 2,
|
||||||
height: page.height * 2,
|
fullHeight: page.height * 2,
|
||||||
format: px.PdfPageImageFormat.jpeg,
|
|
||||||
);
|
);
|
||||||
if (pageImage != null) {
|
if (pageImage != null) {
|
||||||
allPagesAsImages.add(pageImage.bytes);
|
final uiImage = await pageImage.createImage();
|
||||||
|
final byteData = await uiImage.toByteData(
|
||||||
|
format: ui.ImageByteFormat.png,
|
||||||
|
);
|
||||||
|
if (byteData != null) {
|
||||||
|
allPagesAsImages.add(byteData.buffer.asUint8List());
|
||||||
}
|
}
|
||||||
await page.close();
|
uiImage.dispose();
|
||||||
|
pageImage.dispose();
|
||||||
}
|
}
|
||||||
await document.close();
|
}
|
||||||
|
await document.dispose();
|
||||||
} else {
|
} else {
|
||||||
// È un'immagine
|
// È un'immagine
|
||||||
allPagesAsImages.add(fileBytes);
|
allPagesAsImages.add(fileBytes);
|
||||||
@@ -487,33 +496,40 @@ class _SharedAttachmentsSectionState extends State<SharedAttachmentsSection> {
|
|||||||
final baseName = file.name;
|
final baseName = file.name;
|
||||||
|
|
||||||
if (file.extension == 'pdf') {
|
if (file.extension == 'pdf') {
|
||||||
final document = await px.PdfDocument.openData(fileBytes);
|
final document = await pdfrx.PdfDocument.openData(
|
||||||
|
fileBytes,
|
||||||
|
sourceName: file.name,
|
||||||
|
);
|
||||||
final isMulti =
|
final isMulti =
|
||||||
document.pagesCount > 1; // Controlliamo se è multipagina!
|
document.pages.length > 1; // Controlliamo se è multipagina!
|
||||||
|
|
||||||
for (int i = 1; i <= document.pagesCount; i++) {
|
|
||||||
final page = await document.getPage(i);
|
|
||||||
|
|
||||||
|
for (final page in document.pages) {
|
||||||
final pageImage = await page.render(
|
final pageImage = await page.render(
|
||||||
width: page.width * 2,
|
fullWidth: page.width * 2,
|
||||||
height: page.height * 2,
|
fullHeight: page.height * 2,
|
||||||
format: px.PdfPageImageFormat.jpeg,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (pageImage != null) {
|
if (pageImage != null) {
|
||||||
|
final uiImage = await pageImage.createImage();
|
||||||
|
final byteData = await uiImage.toByteData(
|
||||||
|
format: ui.ImageByteFormat.png,
|
||||||
|
);
|
||||||
|
if (byteData != null) {
|
||||||
// Salviamo l'immagine CON il suo contesto storico
|
// Salviamo l'immagine CON il suo contesto storico
|
||||||
itemsToExport.add(
|
itemsToExport.add(
|
||||||
_ExportItem(
|
_ExportItem(
|
||||||
bytes: pageImage.bytes,
|
bytes: byteData.buffer.asUint8List(),
|
||||||
sourceName: baseName,
|
sourceName: baseName,
|
||||||
isMultiPage: isMulti,
|
isMultiPage: isMulti,
|
||||||
pageIndex: i,
|
pageIndex: page.pageNumber,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
await page.close();
|
uiImage.dispose();
|
||||||
|
pageImage.dispose();
|
||||||
}
|
}
|
||||||
await document.close();
|
}
|
||||||
|
await document.dispose();
|
||||||
} else {
|
} else {
|
||||||
// SE È UN'IMMAGINE, la salviamo come singola pagina
|
// SE È UN'IMMAGINE, la salviamo come singola pagina
|
||||||
itemsToExport.add(
|
itemsToExport.add(
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flux/core/utils/functions.dart';
|
import 'package:flux/core/utils/functions.dart';
|
||||||
import 'package:flux/features/attachments/models/attachment_model.dart';
|
import 'package:flux/features/attachments/models/attachment_model.dart';
|
||||||
import 'package:pdfx/pdfx.dart';
|
import 'package:pdfrx/pdfrx.dart';
|
||||||
import 'package:internet_file/internet_file.dart';
|
import 'package:internet_file/internet_file.dart';
|
||||||
|
|
||||||
class AttachmentViewerScreen extends StatefulWidget {
|
class AttachmentViewerScreen extends StatefulWidget {
|
||||||
@@ -37,7 +37,6 @@ class _AttachmentViewerScreenState extends State<AttachmentViewerScreen> {
|
|||||||
late int _currentIndex;
|
late int _currentIndex;
|
||||||
final FocusNode _focusNode = FocusNode();
|
final FocusNode _focusNode = FocusNode();
|
||||||
|
|
||||||
PdfControllerPinch? _pdfController;
|
|
||||||
bool _isLoading = true;
|
bool _isLoading = true;
|
||||||
String? _errorMessage;
|
String? _errorMessage;
|
||||||
Uint8List? _fileBytes;
|
Uint8List? _fileBytes;
|
||||||
@@ -76,7 +75,6 @@ class _AttachmentViewerScreenState extends State<AttachmentViewerScreen> {
|
|||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
_focusNode.dispose();
|
_focusNode.dispose();
|
||||||
_pdfController?.dispose();
|
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,8 +90,6 @@ class _AttachmentViewerScreenState extends State<AttachmentViewerScreen> {
|
|||||||
|
|
||||||
void _changeFile(int newIndex) {
|
void _changeFile(int newIndex) {
|
||||||
if (newIndex < 0 || newIndex >= _items.length) return;
|
if (newIndex < 0 || newIndex >= _items.length) return;
|
||||||
_pdfController?.dispose();
|
|
||||||
_pdfController = null;
|
|
||||||
setState(() {
|
setState(() {
|
||||||
_currentIndex = newIndex;
|
_currentIndex = newIndex;
|
||||||
_isLoading = true;
|
_isLoading = true;
|
||||||
@@ -138,16 +134,8 @@ class _AttachmentViewerScreenState extends State<AttachmentViewerScreen> {
|
|||||||
|
|
||||||
if (token != _loadToken || !mounted) return;
|
if (token != _loadToken || !mounted) return;
|
||||||
|
|
||||||
PdfControllerPinch? controller;
|
|
||||||
if (isPdf && bytes != null) {
|
|
||||||
controller = PdfControllerPinch(
|
|
||||||
document: PdfDocument.openData(bytes),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
setState(() {
|
setState(() {
|
||||||
_fileBytes = bytes;
|
_fileBytes = bytes;
|
||||||
_pdfController = controller;
|
|
||||||
_isLoading = false;
|
_isLoading = false;
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -357,8 +345,15 @@ class _AttachmentViewerScreenState extends State<AttachmentViewerScreen> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isPdf && _pdfController != null) {
|
if (isPdf && _fileBytes != null) {
|
||||||
return PdfViewPinch(controller: _pdfController!);
|
return PdfViewer.data(
|
||||||
|
_fileBytes!,
|
||||||
|
sourceName: '${_currentAttachment.id}_${_currentAttachment.name}.pdf',
|
||||||
|
params: const PdfViewerParams(
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
enableKeyboardNavigation: false,
|
||||||
|
),
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return InteractiveViewer(
|
return InteractiveViewer(
|
||||||
maxScale: 5.0,
|
maxScale: 5.0,
|
||||||
|
|||||||
@@ -6,18 +6,18 @@
|
|||||||
|
|
||||||
#include "generated_plugin_registrant.h"
|
#include "generated_plugin_registrant.h"
|
||||||
|
|
||||||
|
#include <app_links_linux/app_links_plugin_linux.h>
|
||||||
#include <file_selector_linux/file_selector_plugin.h>
|
#include <file_selector_linux/file_selector_plugin.h>
|
||||||
#include <gtk/gtk_plugin.h>
|
|
||||||
#include <printing/printing_plugin.h>
|
#include <printing/printing_plugin.h>
|
||||||
#include <url_launcher_linux/url_launcher_plugin.h>
|
#include <url_launcher_linux/url_launcher_plugin.h>
|
||||||
|
|
||||||
void fl_register_plugins(FlPluginRegistry* registry) {
|
void fl_register_plugins(FlPluginRegistry* registry) {
|
||||||
|
g_autoptr(FlPluginRegistrar) app_links_linux_registrar =
|
||||||
|
fl_plugin_registry_get_registrar_for_plugin(registry, "AppLinksPluginLinux");
|
||||||
|
app_links_plugin_linux_register_with_registrar(app_links_linux_registrar);
|
||||||
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
|
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
|
||||||
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
|
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
|
||||||
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
|
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
|
||||||
g_autoptr(FlPluginRegistrar) gtk_registrar =
|
|
||||||
fl_plugin_registry_get_registrar_for_plugin(registry, "GtkPlugin");
|
|
||||||
gtk_plugin_register_with_registrar(gtk_registrar);
|
|
||||||
g_autoptr(FlPluginRegistrar) printing_registrar =
|
g_autoptr(FlPluginRegistrar) printing_registrar =
|
||||||
fl_plugin_registry_get_registrar_for_plugin(registry, "PrintingPlugin");
|
fl_plugin_registry_get_registrar_for_plugin(registry, "PrintingPlugin");
|
||||||
printing_plugin_register_with_registrar(printing_registrar);
|
printing_plugin_register_with_registrar(printing_registrar);
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
list(APPEND FLUTTER_PLUGIN_LIST
|
list(APPEND FLUTTER_PLUGIN_LIST
|
||||||
|
app_links_linux
|
||||||
file_selector_linux
|
file_selector_linux
|
||||||
gtk
|
|
||||||
printing
|
printing
|
||||||
url_launcher_linux
|
url_launcher_linux
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import firebase_core
|
|||||||
import firebase_messaging
|
import firebase_messaging
|
||||||
import package_info_plus
|
import package_info_plus
|
||||||
import path_provider_foundation
|
import path_provider_foundation
|
||||||
import pdfx
|
import pdfium_flutter
|
||||||
import printing
|
import printing
|
||||||
import shared_preferences_foundation
|
import shared_preferences_foundation
|
||||||
import url_launcher_macos
|
import url_launcher_macos
|
||||||
@@ -25,7 +25,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
|||||||
FLTFirebaseMessagingPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseMessagingPlugin"))
|
FLTFirebaseMessagingPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseMessagingPlugin"))
|
||||||
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
|
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
|
||||||
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
|
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
|
||||||
PdfxPlugin.register(with: registry.registrar(forPlugin: "PdfxPlugin"))
|
PDFiumFlutterPlugin.register(with: registry.registrar(forPlugin: "PDFiumFlutterPlugin"))
|
||||||
PrintingPlugin.register(with: registry.registrar(forPlugin: "PrintingPlugin"))
|
PrintingPlugin.register(with: registry.registrar(forPlugin: "PrintingPlugin"))
|
||||||
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
|
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
|
||||||
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
|
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
|
||||||
|
|||||||
+90
-43
@@ -13,18 +13,18 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: app_links
|
name: app_links
|
||||||
sha256: f8db46d2ea9ff6f3a37191a7fd5b7813da1253ace8c32c1b9eadace41d1188ea
|
sha256: "08ba88bf19d9edea33130cb71c8ced2cb982b4e00b82efef4a434d1357bc69c3"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "7.2.1"
|
version: "7.2.2"
|
||||||
app_links_linux:
|
app_links_linux:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: app_links_linux
|
name: app_links_linux
|
||||||
sha256: f5f7173a78609f3dfd4c2ff2c95bd559ab43c80a87dc6a095921d96c05688c81
|
sha256: "9ccb5802085a1e57bb07b6256fd1d61a78c7ec104944d4965e62938b4fefd9cb"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.3"
|
version: "1.0.4"
|
||||||
app_links_platform_interface:
|
app_links_platform_interface:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -37,10 +37,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: app_links_web
|
name: app_links_web
|
||||||
sha256: af060ed76183f9e2b87510a9480e56a5352b6c249778d07bd2c95fc35632a555
|
sha256: "382d32c6f486f15b1d7f5d6a37a70a481a4fc08382eef419d373169921a3e765"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.4"
|
version: "1.0.5"
|
||||||
archive:
|
archive:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -137,6 +137,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.3"
|
version: "1.1.3"
|
||||||
|
code_assets:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: code_assets
|
||||||
|
sha256: "828110d598123b5ea96c00c9f3c72105bf79f8ee36c20a39b26209ade421ec57"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.1.0"
|
||||||
collection:
|
collection:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -177,6 +185,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.2"
|
version: "1.0.2"
|
||||||
|
cupertino_ui:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: cupertino_ui
|
||||||
|
sha256: ea0b8170b40a86262b2fc21ac0625303f52df209dbf6fccc2b98b27eff44f6ce
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.2"
|
||||||
dart_jsonwebtoken:
|
dart_jsonwebtoken:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -201,14 +217,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.0"
|
version: "2.1.0"
|
||||||
extension:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: extension
|
|
||||||
sha256: "1d6cc5a2d173407284780b68fd94f2b547184d4190ca7dbf6d0bf43eb43c29d8"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.0"
|
|
||||||
fake_async:
|
fake_async:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -453,11 +461,11 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.27.2"
|
version: "2.27.2"
|
||||||
gtk:
|
hooks:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: gtk
|
name: hooks
|
||||||
sha256: "4ff85b2a16724029dd9e5bbb5a94b6918f9973f74ba571c949d2002801879cf5"
|
sha256: eaac480a35ec0814146c2c48d96aaa829e0e44a7662c88ae84c9edf4bc35651f
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.2.0"
|
version: "2.2.0"
|
||||||
@@ -661,6 +669,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.13.0"
|
version: "0.13.0"
|
||||||
|
material_ui:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: material_ui
|
||||||
|
sha256: "98ab9eda579ecae623e4b376c603035c5def78ce706f735f30bd632af5814695"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.6.0"
|
||||||
meta:
|
meta:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -797,15 +813,38 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.4"
|
version: "1.0.4"
|
||||||
pdfx:
|
pdfium_dart:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: pdfium_dart
|
||||||
|
sha256: e296a26c030e6e0fb34b32ce7481a3cfa0c2d35ce80f6269551c685759f4c91f
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.3.1"
|
||||||
|
pdfium_flutter:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: pdfium_flutter
|
||||||
|
sha256: "59897274513984b347fc98e7bf71ba457678daea8b5568cd7c688979aeb77765"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.3.1"
|
||||||
|
pdfrx:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "packages/pdfx"
|
name: pdfrx
|
||||||
ref: main
|
sha256: "52e78d84a706e5d63d2502689fe8e800d823bc780ac4341b2d3683a4d726505a"
|
||||||
resolved-ref: "452979e49fa00df9d964422ff1bc9f1f6b122d16"
|
url: "https://pub.dev"
|
||||||
url: "https://github.com/ScerIO/packages.flutter.git"
|
source: hosted
|
||||||
source: git
|
version: "2.6.5"
|
||||||
version: "2.11.0"
|
pdfrx_engine:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: pdfrx_engine
|
||||||
|
sha256: f74ca9ea4ec722545f054a1d6ee1bf01222409ecd9458e5945c0cc5feaa3d2c6
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.6.1"
|
||||||
permission_handler:
|
permission_handler:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -862,14 +901,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "7.1.0"
|
version: "7.1.0"
|
||||||
photo_view:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: photo_view
|
|
||||||
sha256: "1fc3d970a91295fbd1364296575f854c9863f225505c28c46e0a03e48960c75e"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.15.0"
|
|
||||||
platform:
|
platform:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -926,6 +957,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "6.1.5+1"
|
version: "6.1.5+1"
|
||||||
|
pub_semver:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: pub_semver
|
||||||
|
sha256: "261236774e8b1d69cfc6b9eabbc96c40f25e7a2d6b171f3385d4f65d5734fb24"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.2.1"
|
||||||
qr:
|
qr:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -950,14 +989,30 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.13.0"
|
version: "2.13.0"
|
||||||
|
record_use:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: record_use
|
||||||
|
sha256: "1cb8564af8d43b464294411db9217f5ec04891c6f22ee2c32d73ae05e88a6bd2"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.1"
|
||||||
|
rxdart:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: rxdart
|
||||||
|
sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.28.0"
|
||||||
shared_preferences:
|
shared_preferences:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: shared_preferences
|
name: shared_preferences
|
||||||
sha256: c3025c5534b01739267eb7d76959bbc25a6d10f6988e1c2a3036940133dd10bf
|
sha256: "1e85e0dccf5b4a016077fea7dfbb4a7cb39c759ac1596fcf60c06deadb7da91f"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.5.5"
|
version: "2.5.6"
|
||||||
shared_preferences_android:
|
shared_preferences_android:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -1131,14 +1186,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.3.1"
|
version: "2.3.1"
|
||||||
universal_platform:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: universal_platform
|
|
||||||
sha256: "64e16458a0ea9b99260ceb5467a214c1f298d647c659af1bff6d3bf82536b1ec"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.1.0"
|
|
||||||
url_launcher:
|
url_launcher:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -1317,4 +1364,4 @@ packages:
|
|||||||
version: "2.1.1"
|
version: "2.1.1"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.13.0 <4.0.0"
|
dart: ">=3.13.0 <4.0.0"
|
||||||
flutter: ">=3.44.0"
|
flutter: ">=3.47.0"
|
||||||
+1
-6
@@ -25,7 +25,6 @@ dependencies:
|
|||||||
image_picker: ^1.2.1
|
image_picker: ^1.2.1
|
||||||
internet_file: ^1.3.0
|
internet_file: ^1.3.0
|
||||||
intl: ^0.20.2
|
intl: ^0.20.2
|
||||||
pdfx: ^2.9.2
|
|
||||||
permission_handler: ^12.0.1
|
permission_handler: ^12.0.1
|
||||||
qr_flutter: ^4.1.0
|
qr_flutter: ^4.1.0
|
||||||
shared_preferences: ^2.5.5
|
shared_preferences: ^2.5.5
|
||||||
@@ -42,13 +41,9 @@ dependencies:
|
|||||||
firebase_core: ^4.9.0
|
firebase_core: ^4.9.0
|
||||||
firebase_messaging: ^16.2.2
|
firebase_messaging: ^16.2.2
|
||||||
universal_html: ^2.3.0
|
universal_html: ^2.3.0
|
||||||
|
pdfrx: ^2.6.5
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
pdfx:
|
|
||||||
git:
|
|
||||||
url: https://github.com/ScerIO/packages.flutter.git
|
|
||||||
ref: main
|
|
||||||
path: packages/pdfx
|
|
||||||
path_provider_foundation: 2.5.1
|
path_provider_foundation: 2.5.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#include <app_links/app_links_plugin_c_api.h>
|
#include <app_links/app_links_plugin_c_api.h>
|
||||||
#include <file_selector_windows/file_selector_windows.h>
|
#include <file_selector_windows/file_selector_windows.h>
|
||||||
#include <firebase_core/firebase_core_plugin_c_api.h>
|
#include <firebase_core/firebase_core_plugin_c_api.h>
|
||||||
#include <pdfx/pdfx_plugin.h>
|
|
||||||
#include <permission_handler_windows/permission_handler_windows_plugin.h>
|
#include <permission_handler_windows/permission_handler_windows_plugin.h>
|
||||||
#include <printing/printing_plugin.h>
|
#include <printing/printing_plugin.h>
|
||||||
#include <url_launcher_windows/url_launcher_windows.h>
|
#include <url_launcher_windows/url_launcher_windows.h>
|
||||||
@@ -21,8 +20,6 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
|
|||||||
registry->GetRegistrarForPlugin("FileSelectorWindows"));
|
registry->GetRegistrarForPlugin("FileSelectorWindows"));
|
||||||
FirebaseCorePluginCApiRegisterWithRegistrar(
|
FirebaseCorePluginCApiRegisterWithRegistrar(
|
||||||
registry->GetRegistrarForPlugin("FirebaseCorePluginCApi"));
|
registry->GetRegistrarForPlugin("FirebaseCorePluginCApi"));
|
||||||
PdfxPluginRegisterWithRegistrar(
|
|
||||||
registry->GetRegistrarForPlugin("PdfxPlugin"));
|
|
||||||
PermissionHandlerWindowsPluginRegisterWithRegistrar(
|
PermissionHandlerWindowsPluginRegisterWithRegistrar(
|
||||||
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
|
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
|
||||||
PrintingPluginRegisterWithRegistrar(
|
PrintingPluginRegisterWithRegistrar(
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
|||||||
app_links
|
app_links
|
||||||
file_selector_windows
|
file_selector_windows
|
||||||
firebase_core
|
firebase_core
|
||||||
pdfx
|
|
||||||
permission_handler_windows
|
permission_handler_windows
|
||||||
printing
|
printing
|
||||||
url_launcher_windows
|
url_launcher_windows
|
||||||
|
|||||||
Reference in new issue
Block a user