Feature request: ZefyrEmbedBuilder add ZefyrController parameter
taojoe opened this issue · comments
周向涛 commented
make ZefyrEmbedBuilder add ZefyrController as third parameter, so the embed builder can change itself by controller.
it's required when building a image cropper or image resizer.
typedef ZefyrEmbedBuilder = Widget Function(
BuildContext context, EmbedNode node, ZefyrController controller);
Cedric GESTES commented
Hi,
not sure what's the official reason for the API.
Just in case you can do something along those lines:
ZefyrEditor(
controller: controller,
focusNode: focusNode,
embedBuilder: (context, node) => yourEmbedBuilder(context, node, controller),
),
周向涛 commented
Hi,
not sure what's the official reason for the API.
Just in case you can do something along those lines:
ZefyrEditor( controller: controller, focusNode: focusNode, embedBuilder: (context, node) => yourEmbedBuilder(context, node, controller), ),
Thanks, it's good.
Cedric GESTES commented
Great. Lets close then.
😁