Skip to content
New issue

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

Need to customise the UI #30

Closed
suyashdixit opened this issue Nov 22, 2019 · 2 comments
Closed

Need to customise the UI #30

suyashdixit opened this issue Nov 22, 2019 · 2 comments

Comments

@suyashdixit
Copy link

suyashdixit commented Nov 22, 2019

Hello,
Great plugin but I need to customize it. For an example of the PDFView, I want to give no elevation with all white background.
I am a bit new to Flutter so apologies if it is a stupid question.

@endigo
Copy link
Owner

endigo commented Nov 23, 2019

Hello, thanks for using it.

Unfortunately, I think customing UI isn't possible because there are no views or any other widgets.

The background color is from native libraries, so there is no way to customize it.

@endigo endigo closed this as completed Nov 23, 2019
@mvilks
Copy link

mvilks commented Feb 5, 2020

@suyashdixit
The simplest way to do it for iOS is this:

  • git clone this repo
  • edit ios/Classes/FlutterPDFView.m file, replace line 73 with this:
_pdfView.backgroundColor = [UIColor colorWithWhite:1.0 alpha:1.0];
_pdfView.pageShadowsEnabled = NO;
  • edit your Flutter project's pubspec.yaml dependencies:
dependencies:
  flutter_pdfview:
    path: ../path_of_your_git_cloned_flutter_pdfview/
  • do flutter pub get and run your project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants