setFixedScroll method

Future<void> setFixedScroll(
  1. bool isFixedScroll
)

Sets whether to fix the position of the non-swipe direction when zooming in for reading.

isFixedScroll true: fixed position; false: not fixed position; Set false by default

Implementation

Future<void> setFixedScroll(bool isFixedScroll) async {
  assert(Platform.isAndroid, 'This method is only supported on Android');
  await _channel.invokeMethod('set_fixed_scroll', isFixedScroll);
}