addImage method

dynamic addImage()

Implementation

addImage() async {
  showCupertinoModalPopup(
    context: Get.context!,
    builder: (builder) {
      return CupertinoActionSheet(
        actions: [
          CupertinoActionSheetAction(
            onPressed: () {
              clickCamera();
              Get.back();
            },
            child: Text("拍照"),
          ),
          CupertinoActionSheetAction(
            onPressed: () {
              clickPhoto();
              Get.back();
            },
            child: Text("相册"),
          ),
        ],
        cancelButton: CupertinoActionSheetAction(
          child: Text("取消"),
          onPressed: () {
            Get.back();
          },
        ),
      );
    },
  );
}