pdfx 2.1.1 pdfx: ^2.1.1 copied to clipboard
Flutter plugin to render & show PDF pages as images on Web, MacOS, Windows, Android and iOS.
import 'package:flutter/material.dart';
import 'package:pdfx_example/pinch.dart';
import 'package:pdfx_example/simple.dart';
import 'package:performance/performance.dart';
import 'package:universal_platform/universal_platform.dart';
void main() => runApp(const MyApp());
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) => MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(primaryColor: Colors.white),
darkTheme: ThemeData.dark(),
home: CustomPerformanceOverlay(
enabled: false,
child: UniversalPlatform.isWindows
? const SimplePage()
: const PinchPage(),
),
);
}