dialogImageModify static method

void dialogImageModify(
  1. BuildContext ctx,
  2. ValueNotifier<File?> photo, {
  3. void next()?,
  4. num? size,
  5. num? paddingChild,
  6. num? wirePadding,
})

Implementation

static void dialogImageModify(
  BuildContext ctx,
  ValueNotifier<File?> photo, {
  void Function()? next,
  num? size,
  num? paddingChild,
  num? wirePadding,
}) {
  showDialogCustom(
    context: ctx,
    location: Location.bottom,
    offsetHandle: fromBottom,
    style: StyleText.one(size: size),
    builder: (_) => SafeArea(
      bottom: true,
      child: DialogListSelect(
        paddingChild: paddingChild,
        wirePadding: wirePadding,
        children: [
          NameFunction("删除", () async {
            photo.value = null;
            if (next != null) next();
          }),
          NameFunction("替换", () async {
            dialogImageSelect(ctx, photo);
          }),
        ],
      ),
    ),
  );
}