[Question] How to edit the delete option when dragging an emoji to delete it. #565
Answered
by
AmanRajSinghMourya
AmanRajSinghMourya
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
AmanRajSinghMourya
Jul 17, 2025
Replies: 2 comments 2 replies
-
|
In that case, you can create your own widget and replace the default configs: ProImageEditorConfigs(
mainEditor: MainEditorConfigs(
widgets: MainEditorWidgets(
removeLayerArea: (removeAreaKey, editor, rebuildStream) {
return Align(
alignment: Alignment.bottomCenter,
child: StreamBuilder(
stream: rebuildStream,
builder: (_, __) {
bool isHovered =
editor.layerInteractionManager.hoverRemoveBtn;
double diameter = 56;
return AnimatedContainer(
key: removeAreaKey,
duration: const Duration(milliseconds: 150),
height: diameter,
width: diameter,
margin: const EdgeInsets.only(bottom: 24),
decoration: BoxDecoration(
color: isHovered
? const Color.fromARGB(255, 255, 197, 197)
: const Color.fromARGB(255, 255, 255, 255),
shape: BoxShape.circle,
),
padding: const EdgeInsets.all(12),
child: const Center(
child: Icon(
CupertinoIcons.delete,
size: 28,
color: Color(0xFFF44336),
),
),
);
},
),
);
},
),
),
), |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Thank you for the immediate response!! It worked perfectly