resetWidget method

Widget resetWidget({
  1. VoidCallback? onTap,
})

reset button

Implementation

Widget resetWidget({VoidCallback? onTap}) {
  return Padding(
    padding: EdgeInsets.only(top: 6, bottom: 6 , right: 16),
    child: ValueListenableBuilder<OperateType>(
      valueListenable: realState?._panelController.operateType ?? ValueNotifier(OperateType.non),
      builder: (ctx, value, child) {
        return Offstage(
          offstage: value != OperateType.rotated,
          child: GestureDetector(
            onTap: onTap,
            child: ImageEditor.uiDelegate.resetWidget,
          ),);
      },
    ),
  );
}