pdfdownload 0.0.2 copy "pdfdownload: ^0.0.2" to clipboard
pdfdownload: ^0.0.2 copied to clipboard

A new flutter plugin project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:pdfdownload/pdfdownload.dart';



void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: PDFPage(),
    );
  }
}

class PDFPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('PDF DownLoand Page'),
        backgroundColor: Color(0xff003cb3),
        actions: [
          Padding(
            padding: const EdgeInsets.only(right:15.0),
            child: DownloandPdf(
              isUseIcon: true,
              pdfUrl:
              'https://www.panthercountry.org/userfiles/358/Classes/4914/NOUN%20Clause%20Practice.pdf',
              fileNames: 'TestDownload.pdf',
              color: Colors.white,
            ),
          ),
        ],
      ),
      body: Center(
        child: DownloandPdf(
          pdfUrl:
          'http://www.espressoenglish.net/wp-content/uploads/2012/07/Free-Grammar-Ebook-Level-2.pdf',
          fileNames: 'TestDownload.pdf',
          color: Theme.of(context).primaryColor,
        ),
      ),
    );
  }
}
5
likes
90
pub points
58%
popularity

Publisher

unverified uploader

A new flutter plugin project.

Homepage

Documentation

API reference

License

unknown (LICENSE)

Dependencies

dio, flutter, open_file, path_provider, permission_handler

More

Packages that depend on pdfdownload