buildOperateWidget method

Widget buildOperateWidget(
  1. OperateType type, {
  2. required bool choosen,
})

Implementation

Widget buildOperateWidget(OperateType type, {required bool choosen}) {
  switch(type) {
    case OperateType.non:
      return SizedBox();
    case OperateType.brush:
      return brushWidget(_operateBtnSize, type, choosen: choosen);
    case OperateType.text:
      return addTextWidget(_operateBtnSize, type, choosen: choosen);
    case OperateType.flip:
      return flipWidget(_operateBtnSize, type, choosen: choosen);
    case OperateType.rotated:
      return rotateWidget(_operateBtnSize, type, choosen: choosen);
    case OperateType.mosaic:
      return mosaicWidget(_operateBtnSize, type, choosen: choosen);
  }
}