hideFakeHero method

void hideFakeHero()

Implementation

void hideFakeHero() {
  _showFakeHero = false;
  showWidgets = true;
  cropPainterKey.currentState?.update(
    isComplex: showWidgets,
    willChange: showWidgets,
  );

  loopWithTransitionTiming(
    (double curveT) {
      _painterOpacity = 1 * curveT;

      cropPainterKey.currentState?.update(foregroundPainter: cropPainter);
    },
    mounted: mounted,
    transitionFunction:
        cropRotateEditorConfigs.fadeInOutsideCropAreaAnimationCurve.transform,
    duration: cropRotateEditorConfigs.fadeInOutsideCropAreaAnimationDuration,
    onDone: takeScreenshot,
  );

  _updateAllStates();
}