ProImageEditorConfigs constructor
const
ProImageEditorConfigs({
- ThemeData? theme,
- String heroTag = 'Pro-Image-Editor-Hero',
- I18n i18n = const I18n(),
- HelperLines helperLines = const HelperLines(),
- LayerInteraction layerInteraction = const LayerInteraction(),
- ImageEditorCustomWidgets customWidgets = const ImageEditorCustomWidgets(),
- ImageEditorTheme imageEditorTheme = const ImageEditorTheme(),
- ImageEditorIcons icons = const ImageEditorIcons(),
- StateHistoryConfigs stateHistoryConfigs = const StateHistoryConfigs(),
- ImageGeneratioConfigs imageGenerationConfigs = const ImageGeneratioConfigs(),
- MainEditorConfigs mainEditorConfigs = const MainEditorConfigs(),
- PaintEditorConfigs paintEditorConfigs = const PaintEditorConfigs(),
- TextEditorConfigs textEditorConfigs = const TextEditorConfigs(),
- CropRotateEditorConfigs cropRotateEditorConfigs = const CropRotateEditorConfigs(),
- FilterEditorConfigs filterEditorConfigs = const FilterEditorConfigs(),
- BlurEditorConfigs blurEditorConfigs = const BlurEditorConfigs(),
- EmojiEditorConfigs emojiEditorConfigs = const EmojiEditorConfigs(),
- StickerEditorConfigs? stickerEditorConfigs,
- ImageEditorDesignModeE designMode = ImageEditorDesignModeE.material,
Creates an instance of ProImageEditorConfigs.
- The
theme
specifies the theme for the Image Editor. - The
heroTag
is a unique tag for the Image Editor widget. By default, it is 'Pro-Image-Editor-Hero'. - The
i18n
is used for internationalization settings. By default, it uses an emptyI18n
instance. - The
helperLines
configures helper lines in the Image Editor. By default, it uses an emptyHelperLines
instance. - The
layerInteraction
specifies options for the layer interaction behavior. - The
customWidgets
specifies custom widgets to be used in the Image Editor. By default, it uses an emptyCustomWidgets
instance. - The
imageEditorTheme
sets the theme for the Image Editor. By default, it uses an emptyImageEditorTheme
instance. - The
icons
specifies the icons to be used in the Image Editor. By default, it uses an emptyImageEditorIcons
instance. - The
mainEditorConfigs
configures the Main Editor. By default, it uses an emptyMainEditorConfigs
instance. - The
paintEditorConfigs
configures the Paint Editor. By default, it uses an emptyPaintEditorConfigs
instance. - The
textEditorConfigs
configures the Text Editor. By default, it uses an emptyTextEditorConfigs
instance. - The
cropRotateEditorConfigs
configures the Crop and Rotate Editor. By default, it uses an emptyCropRotateEditorConfigs
instance. - The
filterEditorConfigs
configures the Filter Editor. By default, it uses an emptyFilterEditorConfigs
instance. - The
blurEditorConfigs
configures the Blur Editor. By default, it uses an emptyBlurEditorConfigs
instance. - The
emojiEditorConfigs
configures the Emoji Editor. By default, it uses an emptyEmojiEditorConfigs
instance. - The
stickerEditorConfigs
configures the Sticker Editor. By default, it uses an emptyStickerEditorConfigs
instance. - The
designMode
specifies the design mode for the Image Editor. By default, it isImageEditorDesignModeE.material
. - The
stateHistoryConfigs
holds the configurations related to state history management. By default, it uses an emptyStateHistoryConfigs
instance. - The
imageGenerationConfigs
holds the configurations related to image generation. By default, it uses an emptyImageGeneratioConfigs
instance. - The
editorBoxConstraintsBuilder
configures global BoxConstraints to use when opening editors in modal bottom sheets.
Implementation
const ProImageEditorConfigs({
this.theme,
this.heroTag = 'Pro-Image-Editor-Hero',
this.i18n = const I18n(),
this.helperLines = const HelperLines(),
this.layerInteraction = const LayerInteraction(),
this.customWidgets = const ImageEditorCustomWidgets(),
this.imageEditorTheme = const ImageEditorTheme(),
this.icons = const ImageEditorIcons(),
this.stateHistoryConfigs = const StateHistoryConfigs(),
this.imageGenerationConfigs = const ImageGeneratioConfigs(),
this.mainEditorConfigs = const MainEditorConfigs(),
this.paintEditorConfigs = const PaintEditorConfigs(),
this.textEditorConfigs = const TextEditorConfigs(),
this.cropRotateEditorConfigs = const CropRotateEditorConfigs(),
this.filterEditorConfigs = const FilterEditorConfigs(),
this.blurEditorConfigs = const BlurEditorConfigs(),
this.emojiEditorConfigs = const EmojiEditorConfigs(),
this.stickerEditorConfigs,
this.designMode = ImageEditorDesignModeE.material,
});