showSmallWindowFloat method

Future<bool> showSmallWindowFloat()

Implementation

Future<bool> showSmallWindowFloat() async {
  Tools.closeAllFloating();
  smallWindowFloating = floatingManager.createFloating(
    smallWindowFloatingKey,
    smallWindowFloatingWidget,
  );
  if (_rootContext != null) {
    if (smallWindowFloating != null) {
      smallWindowFloating?.open(_rootContext!);
      setIsInSmallWindowMode(true);
      return true;
    } else {
      TCICLog.error(
        "smallWindowFloating is null",
        actionModule: ActionModule.tcicController.name,
        actionName: ActionName.showSmallWindowFloat.name,
      );
    }
  } else {
    TCICLog.error(
      "rootContext is null",
      actionModule: ActionModule.tcicController.name,
      actionName: ActionName.showSmallWindowFloat.name,
    );
  }
  return false;
}