- Upgrade dependencies
- Dart 3, Flutter 3.10 compatibility pull#404
- Transfer Pdf support check from viewer to renderer pull#392
- Added reverse option in
PdfView
pull#412
- Fixup rendering issues in chromium based web-browsers pull#402
- Added option
forPrint
in image render pull#301
- Added password support (web only) pull#354
- Updated dependencies
- Upgrade dependency
device_info_plus
to v4
- Fixed flutter 3.0 build
- Fixed web install script
- Fixed some bugs
- Fixed broken links at pub.dev
- Fixed readme
- Update pdfjs version in installation script
- Provide more docs
- Fixed windows support
- Added
builders
argument for PdfViewPinch
& PdfView
. Example:
PdfViewPinch(
builders: PdfViewPinchBuilders<DefaultBuilderOptions>(
options: const DefaultBuilderOptions(
loaderSwitchDuration: const Duration(seconds: 1),
transitionBuilder: SomeWidget.transitionBuilder,
),
documentLoaderBuilder: (_) =>
const Center(child: CircularProgressIndicator()),
pageLoaderBuilder: (_) =>
const Center(child: CircularProgressIndicator()),
errorBuilder: (_, error) => Center(child: Text(error.toString())),
builder: SomeWidget.builder,
),
)
- Added widget
PdfPageNumber
for show actual page number & all pages count. Example:
PdfPageNumber(
controller: _pdfController,
// When `loadingState != PdfLoadingState.success` `pagesCount` equals null_
builder: (_, state, loadingState, pagesCount) => Container(
alignment: Alignment.center,
child: Text(
'$page/${pagesCount ?? 0}',
style: const TextStyle(fontSize: 22),
),
),
)
- Added listenable page number
pageListenable
in PdfController
& PdfControllerPinch
. Example:
ValueListenableBuilder<int>(
valueListenable: controller.pageListenable,
builder: (context, actualPageNumber, child) => Text(actualPageNumber.toString()),
)
- Added listenable loading state
loadingState
in PdfController
& PdfControllerPinch
. Example:
ValueListenableBuilder<PdfLoadingState>(
valueListenable: controller.loadingState,
builder: (context, loadingState, loadingState) => (){
switch (loadingState) {
case PdfLoadingState.loading:
return const CircularProgressIndicator();
case PdfLoadingState.error:
return const Text('Pdf load error');
case PdfLoadingState.success:
return const Text('Pdf loaded');
}
}(),
)
- Removed
documentLoader
, pageLoader
, errorBuilder
m loaderSwitchDuration
arguments from PdfViewPinch
& PdfView
- Removed
pageSnapping
, physics
arguments from PdfViewPinch
- Rename
PdfControllerPinch
page control methods like a PdfController
control names