flutter_cached_pdfview 0.1.0+1
flutter_cached_pdfview: ^0.1.0+1 copied to clipboard
A package to show pdf file, the first time will download the file and cache it, other time will get from the cache without the internet.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_cached_pdfview/flutter_cached_pdfview.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('flutter_cached_pdfview Demo'),
),
body: CachedPDFView(url: 'http://africau.edu/images/default/sample.pdf'),
);
}
}