We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Unable to show/open a simple PDF, common PDF readers simply open it.
To Reproduce Steps to reproduce the behavior:
import 'package:flutter/material.dart'; import 'package:pdfx/pdfx.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } } class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override State<MyHomePage> createState() => _MyHomePageState(); } class _MyHomePageState extends State<MyHomePage> { late PdfController _pdfController; @override void initState() { super.initState(); _pdfController = PdfController( document: PdfDocument.openAsset('assets/20220520_1827_IT.pdf'), ); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: Text(widget.title), ), body: PdfView(controller: _pdfController), ); } }
Expected behavior Simply show the PDF.
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
20220520_1827_IT.pdf
The text was updated successfully, but these errors were encountered:
SergeShkurko
No branches or pull requests
Describe the bug
Unable to show/open a simple PDF, common PDF readers simply open it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Simply show the PDF.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
20220520_1827_IT.pdf
The text was updated successfully, but these errors were encountered: