Skip to content

Commit

Permalink
0.4.44
Browse files Browse the repository at this point in the history
  • Loading branch information
espresso3389 committed Feb 9, 2024
1 parent 24ee0ea commit 6609963
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.4.44

- FIXED: PdfViewerParams.boundaryMargin does not work correctly.

# 0.4.43

- Add note for dark/night mode support on README.md; the trick is originally introduced by [pckimlong](https://github.com/pckimlong) on #46.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Add this to your package's `pubspec.yaml` file and execute `flutter pub get`:

```yaml
dependencies:
pdfrx: ^0.4.43
pdfrx: ^0.4.44
```
### Windows
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.4.43"
version: "0.4.44"
platform:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions lib/src/widgets/pdf_viewer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ class _PdfViewerState extends State<PdfViewer>
iv.InteractiveViewer(
transformationController: _txController,
constrained: false,
boundaryMargin: widget.params.boundaryMargin ??
const EdgeInsets.all(double.infinity),
maxScale: widget.params.maxScale,
minScale: _alternativeFitScale != null
? _alternativeFitScale! / 2
Expand Down
2 changes: 2 additions & 0 deletions lib/src/widgets/pdf_viewer_params.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class PdfViewerParams {
final PanAxis panAxis;

/// See [InteractiveViewer.boundaryMargin] for details.
///
/// The default is `EdgeInsets.all(double.infinity)`.
final EdgeInsets? boundaryMargin;

/// Annotation rendering mode.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pdfrx
description: pdfrx is a rich and fast PDF viewer implementation built on the top of pdfium. The plugin supports Android, iOS, Windows, macOS, Linux, and Web.
version: 0.4.43
version: 0.4.44
homepage: https://github.com/espresso3389/pdfrx

environment:
Expand Down

0 comments on commit 6609963

Please sign in to comment.