Improve sheet viewer by using pdfrx

This makes it incompatible with web
This commit is contained in:
2024-12-21 00:28:10 +01:00
parent d5d5bc6e5d
commit 118b9c8358
10 changed files with 188 additions and 63 deletions

View File

@@ -10,6 +10,7 @@ import flutter_secure_storage_macos
import path_provider_foundation
import pdfx
import sqflite_darwin
import url_launcher_macos
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
@@ -17,4 +18,5 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
PdfxPlugin.register(with: registry.registrar(forPlugin: "PdfxPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
}