Skip to content

Commit

Permalink
Merge pull request #110 from bonnybun/add_background_color
Browse files Browse the repository at this point in the history
add background color
  • Loading branch information
binSaed authored Oct 22, 2024
2 parents ad3d614 + 20859c7 commit 24e5143
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 747 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import 'package:flutter_cached_pdfview/flutter_cached_pdfview.dart';
## Options

| Name | Android | iOS | Default |
| :-------------------- | :-----: | :-: | :---------------: |
|:----------------------| :-----: | :-: |:-----------------:|
| defaultPage ||| `0` |
| onViewCreated ||| `null` |
| onRender ||| `null` |
Expand All @@ -74,6 +74,7 @@ import 'package:flutter_cached_pdfview/flutter_cached_pdfview.dart';
| pageFling ||| `true` |
| pageSnap ||| `true` |
| preventLinkNavigation ||| `false` |
| bockgroundColor ||| `null` |

## Controller Options

Expand All @@ -91,6 +92,7 @@ import 'package:flutter_cached_pdfview/flutter_cached_pdfview.dart';
swipeHorizontal: true,
autoSpacing: false,
pageFling: false,
backgroundColor: Colors.grey,
onError: (error) {
print(error.toString());
},
Expand Down
1 change: 1 addition & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class PDFViewerFromAsset extends StatelessWidget {
swipeHorizontal: true,
autoSpacing: false,
pageFling: false,
backgroundColor: Colors.grey,
onPageChanged: (int? current, int? total) =>
_pageCountController.add('${current! + 1} - $total'),
onViewCreated: (PDFViewController pdfViewController) async {
Expand Down
Loading

0 comments on commit 24e5143

Please sign in to comment.