hm21 / pro_image_editor

The pro_image_editor is a Flutter widget designed for image editing within your application. It provides a flexible and convenient way to integrate image editing capabilities into your Flutter project.
https://hm21.github.io/pro_image_editor/
BSD 3-Clause "New" or "Revised" License
94 stars 59 forks source link

[Feature request] Extend PaintEditorConfigs to allow setting the default line width of paint tools #153

Closed ynnob closed 2 months ago

ynnob commented 2 months ago

Platforms

Android, iOS, Web, Windows, macOS, Linux

Description

I would like to define a default value for the line width of the tools in the paint editor.

example:

            paintEditorConfigs: PaintEditorConfigs(
              canChangeLineWidth: true,
              lineWidth: 2,
            ),

Why

Currently the line always feels a bit clonky on most images so i would like to lower the line width as a default value.

hm21 commented 2 months ago

You can do this inside the PaintingEditorTheme like below:

configs: const ProImageEditorConfigs(
    imageEditorTheme: ImageEditorTheme(
      paintingEditor: PaintingEditorTheme(
        initialStrokeWidth: 2.0,
      ),
    ),
  ),