Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import 'package:flutter/material.dart';
import 'package:pdf_viewer_plugin/pdf_viewer_plugin.dart';
class ViewerScreen extends StatelessWidget {
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
You can’t perform that action at this time.