PaintingEditorTheme class

Flutter PaintingEditorTheme Class Documentation

The PaintingEditorTheme class defines the theme for the painting editor in the image editor. It includes properties such as colors for the app bar, background, bottom bar, and more.

Usage:

PaintingEditorTheme paintingEditorTheme = PaintingEditorTheme(
  appBarBackgroundColor: Colors.black,
  appBarForegroundColor: Colors.white,
  background: Colors.grey,
  bottomBarColor: Colors.black,
  bottomBarActiveItemColor: Colors.blue,
);

Properties:

  • appBarBackgroundColor: Background color of the app bar in the painting editor.

  • appBarForegroundColor: Foreground color (text and icons) of the app bar.

  • background: Background color of the painting editor.

  • bottomBarColor: Background color of the bottom navigation bar.

  • bottomBarActiveItemColor: Color of active items in the bottom navigation bar.

  • bottomBarInactiveItemColor: Color of inactive items in the bottom navigation bar.

  • lineWidthBottomSheetColor: Color of the bottom sheet used to select line width.

Example Usage:

PaintingEditorTheme paintingEditorTheme = PaintingEditorTheme(
  appBarBackgroundColor: Colors.black,
  appBarForegroundColor: Colors.white,
  background: Colors.grey,
  bottomBarColor: Colors.black,
  bottomBarActiveItemColor: Colors.blue,
);

Color appBarBackgroundColor = paintingEditorTheme.appBarBackgroundColor;
Color background = paintingEditorTheme.background;
// Access other theme properties...

Constructors

PaintingEditorTheme({TextStyle? lineWidthBottomSheetTitle, TextStyle? opacityBottomSheetTitle, Color appBarBackgroundColor = imageEditorAppBarColor, Color lineWidthBottomSheetColor = const Color(0xFF252728), Color opacityBottomSheetColor = const Color(0xFF252728), Color appBarForegroundColor = const Color(0xFFE1E1E1), Color background = imageEditorBackgroundColor, Color bottomBarColor = imageEditorAppBarColor, Color bottomBarActiveItemColor = imageEditorPrimaryColor, Color bottomBarInactiveItemColor = const Color(0xFFEEEEEE), double initialStrokeWidth = 10.0, double initialOpacity = 1.0, Color initialColor = const Color(0xffff0000)})
Creates an instance of the PaintingEditorTheme class with the specified theme properties.
const

Properties

appBarBackgroundColor Color
Background color of the app bar in the painting editor.
final
appBarForegroundColor Color
Foreground color (text and icons) of the app bar.
final
background Color
Background color of the painting editor.
final
bottomBarActiveItemColor Color
Color of active items in the bottom navigation bar.
final
bottomBarColor Color
Background color of the bottom navigation bar.
final
bottomBarInactiveItemColor Color
Color of inactive items in the bottom navigation bar.
final
hashCode int
The hash code for this object.
no setterinherited
initialColor Color
Indicates the initial drawing color.
final
initialOpacity double
Indicates the initial opacity level.
final
initialStrokeWidth double
Indicates the initial stroke width.
final
lineWidthBottomSheetColor Color
Color of the bottom sheet used to select line width.
final
lineWidthBottomSheetTitle TextStyle?
Title of the bottom sheet used to select line width.
final
opacityBottomSheetColor Color
Color of the bottom sheet used to change the opacity.
final
opacityBottomSheetTitle TextStyle?
Title of the bottom sheet used to change the opacity.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited