merge
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:fcs/pages/widgets/local_text.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_pdfview/flutter_pdfview.dart';
|
||||
import 'package:image_downloader/image_downloader.dart';
|
||||
|
||||
class PaymentPDFScreen extends StatefulWidget {
|
||||
final String path;
|
||||
@@ -39,7 +40,11 @@ class _PaymentPDFScreenState extends State<PaymentPDFScreen>
|
||||
actions: <Widget>[
|
||||
IconButton(
|
||||
icon: Icon(Icons.file_download),
|
||||
onPressed: () {},
|
||||
onPressed: () async {
|
||||
print('image path => ${widget.path}');
|
||||
await ImageDownloader.downloadImage(widget.path,
|
||||
destination: AndroidDestinationType.directoryDownloads);
|
||||
},
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(Icons.share),
|
||||
|
||||
Reference in New Issue
Block a user