PESDK/Flutter/Guides
Configuration
The PhotoEditor SDK for Flutter can easily be tailored to meet your business needs. Learn how to swiftly create the editor your use-case requires.
You can easily configure the editor to disable specific tools, hide buttons, add specific assets etc. by adding a configuration object to the PESDK.openEditor method.
Configuration options#
The configuration has two types of options:
1. Global#
Global configuration options are applied globally in the entire editor. The main options are:
| Key | Type | Description | 
|---|---|---|
| KeyforceCrop | Type bool | DescriptionDefines whether the user is forced to crop the asset to one of the allowed crop ratios. | 
| KeymainCanvasActions | Type List<MainCanvasAction> | DescriptionDefines all allowed actions for the main screen that are displayed as overlay buttons on the canvas. | 
| KeyenableZoom | Type bool | DescriptionDefines if the user is able to use the zoom feature. | 
| Keysnapping | Type SnappingOptions | DescriptionOptions to change the snapping behavior of sprites in the Sticker, Text and Text Design tool. | 
| Keywatermark | Type WatermarkOptions | DescriptionDefine a watermark for each image. | 
| Keytools | Type List<Tool> | DescriptionDefines which tools are available and their order. | 
| Keyexport | Type ExportOptions | DescriptionConfigure the image export as well as the serialization. | 
| Keytheme | Type ThemeOptions | DescriptionDefines which theme is used for the editor. | 
| KeytoolbarMode | Type ToolbarMode | DescriptionDefines the toolbar position for the editor (iOS only). | 
2. Tool-specific#
Furthermore, you have the option to configure specific tools. The tool options are:
| Key | Type | Description | 
|---|---|---|
| Keytransform | Type TransformOptions | DescriptionConfigure the Transform tool. | 
| Keyfilter | Type FilterOptions | DescriptionConfigure the Filter tool. | 
| Keyadjustment | Type AdjustmentOptions | DescriptionConfigure the Adjustment tool. | 
| Keyfocus | Type FocusOptions | DescriptionConfigure the Focus tool. | 
| Keysticker | Type StickerOptions | DescriptionConfigure the Sticker tool. | 
| Keytext | Type TextOptions | DescriptionConfigure the Text tool. | 
| Keytextdesign | Type TextDesignOptions | DescriptionConfigure the Text design tool. | 
| Keyoverlay | Type OverlayOptions | DescriptionConfigure the Overlay tool. | 
| Keyframe | Type FrameOptions | DescriptionConfigure the Frame tool. | 
| Keybrush | Type BrushOptions | DescriptionConfigure the Brush tool. |