Skip to content

Instantly share code, notes, and snippets.

@tirth-aubergine
Created December 5, 2019 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tirth-aubergine/c5a635edce1e994acf980aea8d47cff4 to your computer and use it in GitHub Desktop.
Save tirth-aubergine/c5a635edce1e994acf980aea8d47cff4 to your computer and use it in GitHub Desktop.
ViewerScreen
import 'package:flutter/material.dart';
import 'package:pdf_viewer_plugin/pdf_viewer_plugin.dart';
class ViewerScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
Map<String, dynamic> view = ModalRoute.of(context).settings.arguments;
return Scaffold(
appBar: AppBar(
title: Text('Certificate'),
),
body: PdfViewer(
filePath: view['view'],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment