foldAction method

void foldAction()

变为折叠

Implementation

void foldAction() {
  if (foldView == null) {
    foldView = GestureDetector(
      onTap: unfoldWidgetUpdate,
      child: Container(
        width: 50,
        height: 50,
        child: Center(
          child: Icon(
            Icons.bug_report,
            color: Colors.white70,
            size: 35,
          ),
        ),
        decoration: BoxDecoration(
            border: Border.all(color: Colors.orangeAccent, width: 2),
            color: Colors.black,
            borderRadius: BorderRadius.circular(25.0)),
      ),
    );
  }
  createFoldDragTarget(offset: Offset(10, _widgetLastY));
}