setBottomPadding method

  1. @override
Future<void> setBottomPadding(
  1. int padding
)
override

This method allows you to set a fixed bottom padding for in app messages and the launcher.

It is useful if your app has a tab bar or similar UI at the bottom of your window. padding is the size of the bottom padding in points.

Implementation

@override
Future<void> setBottomPadding(int padding) async {
  await js.context.callMethod('Intercom', [
    'update',
    convertJsObjectToDartObject(updateIntercomSettings(
      'vertical_padding',
      padding,
    ))
  ]);

  print("Bottom padding set");
}