xb_image_editor
纯flutter写的图片编辑
安装
flutter pub add xb_image_editor
使用
Uint8List? imgData;
List<XBImageEditorOpera> operas = [];
final ret = await Navigator.push(
context,
CupertinoPageRoute<XBImageEditorRet?>(
settings: null,
builder: (context) => XBImageEditor(
img: "assets/images/function_bg.png",
initOperas: operas,
)));
if (ret != null) {
imgData = ret.imgData;
operas = ret.operas;
}
Libraries
- model/xb_image_editor_clip_mask_change_info
- model/xb_image_editor_graph_model
- xb_image_editor
- xb_image_editor_bottom_bar
- xb_image_editor_clip_mask_painter_widget
- xb_image_editor_clip_widget
- xb_image_editor_color_selector
- xb_image_editor_color_util
- xb_image_editor_config
- xb_image_editor_content
- xb_image_editor_funs
- xb_image_editor_img_display_vm
- xb_image_editor_mosaic_widget
- xb_image_editor_mosaic_width_util
- xb_image_editor_opear_bar
- xb_image_editor_opera
- xb_image_editor_opera_clip
- xb_image_editor_opera_mosaic
- xb_image_editor_opera_pen
- xb_image_editor_opera_rotate
- xb_image_editor_opera_text
- xb_image_editor_opera_util
- xb_image_editor_painter
- xb_image_editor_pen_widget
- xb_image_editor_rotate_selector
- xb_image_editor_text_widget
- xb_image_editor_top_bar
- xb_image_editor_vm
- xb_image_editor_width_selector