Adding an Image Resource To Your Application - ApryseSDK/pdftron-flutter GitHub Wiki

Android

  1. Add the image resource to the example/android/app/src/main/res/drawable directory. For details about supported file types and potential compression, check out here.
  1. Now you can use the image in the viewer. For example, if you add button_close.png to drawable, you could use 'button_close' in leadingNavButtonIcon.

iOS

  1. After pods has been installed, open the .xcworkspace file for this application in Xcode (in this case, it's Runner.xcworkspace), and navigate through the list below. This would allow you to add resources, in this case, an image, to your project.
  • "Project navigator"
  • "Runner" (or the app name)
  • "Build Phases"
  • "Copy Bundle Resources"
  • "+".
  1. Now you can use the image in the viewer. For example, if you add button_open.png to the bundle, you could use 'button_open.png' in leadingNavButtonIcon.