displayButton static method

void displayButton()

Implementation

static void displayButton() {
  var prevElem = querySelector('#$buttonId');
  if (prevElem != null) return;

  var elem = button(1.0);

  logger.log('Button: ${elem.clientHeight}');

  elem.style
    ..position = 'fixed'
    ..left = '0px'
    ..top = '100%'
    ..transform = 'translateY(-15px)'
    ..zIndex = '999999';

  document.body!.children.add(elem);
}