Show or hide the UI in the Flutter viewer
Nutrient Flutter SDK supports several modes for showing or hiding the user interface (UI). Use these options to control toolbar and UI visibility.
| Option | Description |
|---|---|
automatic | Shows or hides the toolbar and UI when users tap the page. |
automaticNoFirstLastPage | Works like automatic, but shows the UI on the first and last page of the document. Android supports this option. |
always | Keeps the UI visible. |
never | Keeps the UI hidden. |
Set the userInterfaceViewMode configuration option to change the UI view mode. The following example uses the automatic view mode:
NutrientViewConfiguration( userInterfaceViewMode: UserInterfaceViewMode.automatic,)The following videos show how automatic mode works on Android and iOS:
| Android | iOS |
|---|---|