PDFPreferences class

PDF reader preferences for Flureadium.

Based on Readium PDF navigator preferences:

  • fit: How the page fits in the viewport (width, contain)
  • scrollMode: Scroll orientation (horizontal, vertical)
  • pageLayout: Single page or double spread
  • offsetFirstPage: Offset for first page in spreads (for covers)

Constructors

PDFPreferences({PDFFit? fit, PDFScrollMode? scrollMode, PDFPageLayout? pageLayout, bool? offsetFirstPage, bool? disableDoubleTapZoom, bool? disableTextSelection, bool? disableDragGestures, bool? disableDoubleTapTextSelection, bool? enableEdgeTapNavigation, bool? enableSwipeNavigation, double? edgeTapAreaPoints})
PDFPreferences.fromJsonMap(Map<String, dynamic> map)
factory

Properties

disableDoubleTapTextSelection bool?
Whether to disable double-tap word selection in PDF text (iOS only). When true, double-tapping on PDF text won't select a word or show the Copy/Look Up/Translate menu. Long-press text selection remains functional. Defaults to false (double-tap selection enabled).
getter/setter pair
disableDoubleTapZoom bool?
Whether to disable the built-in double-tap-to-zoom gesture (iOS only). When true, double-tap won't zoom the PDF content. Defaults to false (zoom enabled).
getter/setter pair
disableDragGestures bool?
Whether to disable drag gestures (iOS only). When true, drag gestures won't trigger text selection or drag-and-drop. Defaults to false (drag gestures enabled).
getter/setter pair
disableTextSelection bool?
Whether to disable text selection gestures (iOS only). When true, long-press won't select text in the PDF. Defaults to false (text selection enabled).
getter/setter pair
edgeTapAreaPoints double?
Edge tap area in absolute points (44–120). iOS only. Defaults to 44pt (iOS HIG minimum tap target) when null.
getter/setter pair
enableEdgeTapNavigation bool?
Whether edge tap navigation is enabled (iOS only). When true, tapping on the left/right edges of the screen navigates pages. Defaults to true (enabled) when null.
getter/setter pair
enableSwipeNavigation bool?
Whether swipe gesture navigation is enabled (iOS only). When true, swiping left/right navigates pages. Defaults to true (enabled) when null.
getter/setter pair
fit PDFFit?
How the page fits in the viewport.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
offsetFirstPage bool?
Whether to offset the first page in double-page spreads (for covers).
getter/setter pair
pageLayout PDFPageLayout?
Page layout mode.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollMode PDFScrollMode?
Scroll orientation.
getter/setter pair

Methods

copyWith({PDFFit? fit, PDFScrollMode? scrollMode, PDFPageLayout? pageLayout, bool? offsetFirstPage, bool? disableDoubleTapZoom, bool? disableTextSelection, bool? disableDragGestures, bool? disableDoubleTapTextSelection, bool? enableEdgeTapNavigation, bool? enableSwipeNavigation, double? edgeTapAreaPoints}) PDFPreferences
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited