Closed Ethan-Z closed 3 weeks ago
The issue is that the key is not added to your widget, which is necessary for the editor to recognize the size of the bottom widget. Below is an example of how to implement it.
bottomBar: (editor, rebuildStream, key) {
return ReactiveCustomWidget(
stream: rebuildStream,
builder: (context) {
return Container(
key: key, /// TODO: Add the key here
width: double.infinity,
height: 150.0,
color: Colors.blueGrey,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
IconButton(
icon: const Icon(Icons.crop),
onPressed: () {
editor.openCropRotateEditor();
},
),
IconButton(
icon: const Icon(Icons.emoji_emotions),
onPressed: () {
editor.openEmojiEditor();
},
),
],
),
);
},
);
},
Package Version
5.1.0
Flutter Version
3.24
Platforms
iOS
How to reproduce?
When I customize mainEditor bottomBar, in Crop mode and filter mode, sticker emoji and path will move.
Logs (optional)
No response
Example code (optional)
Device Model (optional)
No response