Comment out new PDF library
This commit is contained in:
parent
67d496dea7
commit
be5824d6ac
|
|
@ -1,15 +1,18 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:invoiceninja_flutter/data/models/invoice_model.dart';
|
import 'package:invoiceninja_flutter/data/models/invoice_model.dart';
|
||||||
import 'package:flutter_plugin_pdf_viewer/flutter_plugin_pdf_viewer.dart';
|
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||||
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
//import 'package:flutter_plugin_pdf_viewer/flutter_plugin_pdf_viewer.dart';
|
||||||
|
|
||||||
Future<Null> viewPdf(InvoiceEntity invoice, BuildContext context) async {
|
Future<Null> viewPdf(InvoiceEntity invoice, BuildContext context) async {
|
||||||
final navigator = Navigator.of(context);
|
|
||||||
|
|
||||||
navigator.push(
|
|
||||||
MaterialPageRoute<PDFViewer>(builder: (context) => PDFScreen(invoice)));
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
final navigator = Navigator.of(context);
|
||||||
|
navigator.push(
|
||||||
|
MaterialPageRoute<PDFViewer>(builder: (context) => PDFScreen(invoice)));
|
||||||
|
*/
|
||||||
|
|
||||||
final localization = AppLocalization.of(context);
|
final localization = AppLocalization.of(context);
|
||||||
if (Theme.of(context).platform == TargetPlatform.iOS) {
|
if (Theme.of(context).platform == TargetPlatform.iOS) {
|
||||||
if (await canLaunch(invoice.invitationBorderlessLink)) {
|
if (await canLaunch(invoice.invitationBorderlessLink)) {
|
||||||
|
|
@ -27,9 +30,9 @@ Future<Null> viewPdf(InvoiceEntity invoice, BuildContext context) async {
|
||||||
throw localization.anErrorOccurred;
|
throw localization.anErrorOccurred;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
class PDFScreen extends StatefulWidget {
|
class PDFScreen extends StatefulWidget {
|
||||||
const PDFScreen(this.invoice);
|
const PDFScreen(this.invoice);
|
||||||
|
|
||||||
|
|
@ -68,3 +71,4 @@ class _PDFScreenState extends State<PDFScreen> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
28
pubspec.lock
28
pubspec.lock
|
|
@ -219,13 +219,6 @@ packages:
|
||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
flutter_plugin_pdf_viewer:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: flutter_plugin_pdf_viewer
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.4"
|
|
||||||
flutter_redux:
|
flutter_redux:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
@ -313,13 +306,6 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.3"
|
version: "3.1.3"
|
||||||
infinite_listview:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: infinite_listview
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.0"
|
|
||||||
intl:
|
intl:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
@ -418,13 +404,6 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.4.4"
|
version: "1.4.4"
|
||||||
numberpicker:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: numberpicker
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.0"
|
|
||||||
package_config:
|
package_config:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -523,13 +502,6 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.3.0"
|
version: "0.3.0"
|
||||||
rxdart:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: rxdart
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.21.0"
|
|
||||||
sentry:
|
sentry:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ dependencies:
|
||||||
firebase_auth: ^0.6.2+1
|
firebase_auth: ^0.6.2+1
|
||||||
local_auth: ^0.3.0
|
local_auth: ^0.3.0
|
||||||
sentry: ^2.2.0
|
sentry: ^2.2.0
|
||||||
flutter_plugin_pdf_viewer: any
|
#flutter_plugin_pdf_viewer: any
|
||||||
#quick_actions: ^0.2.1
|
#quick_actions: ^0.2.1
|
||||||
#flutter_html_view: ^0.5.8
|
#flutter_html_view: ^0.5.8
|
||||||
#flutter_html: ^0.5.3
|
#flutter_html: ^0.5.3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue