dialogImageModify static method
void
dialogImageModify(
- BuildContext ctx,
- ValueNotifier<
File?> photo, { - void next()?,
- num? size,
- num? paddingChild,
- 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);
}),
],
),
),
);
}