Show or hide the UI in our Flutter viewer

Nutrient Flutter SDK offers a few ways to show or hide the user interface (UI). The table below outlines the supported options.

OptionDescription
automaticThe toolbar and the user interface will show or hide when tapping on the page.
automaticNoFirstLastPageLike automatic, but the user interface will show on the first and last page of the document (only supported on Android).
alwaysThe user interface will always be visible.
neverThe user interface will always be hidden.

The user interface view mode can be changed using the userInterfaceViewMode configuration option. The following example shows how to use the automatic view mode:

PdfConfiguration(
userInterfaceViewMode: PspdfkitUserInterfaceViewMode.automatic
);

Here’s how automatic works:

AndroidiOS