PaintEditorStyle class

Flutter PaintEditorStyle Class Documentation

The PaintEditorStyle class defines the styles for the paint editor in the image editor. It includes properties such as colors for the app bar, background, bottom bar, and more.

Usage:

PaintEditorStyle PaintEditorStyle = PaintEditorStyle(
  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 paint editor.

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

  • background: Background color of the paint 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:

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

Color appBarBackgroundColor = PaintEditorStyle.appBarBackgroundColor;
Color background = PaintEditorStyle.background;
// Access other style properties...

Constructors

PaintEditorStyle({TextStyle? lineWidthBottomSheetTitle, TextStyle? opacityBottomSheetTitle, Color appBarBackground = kImageEditorAppBarBackground, Color appBarColor = kImageEditorAppBarColor, Color lineWidthBottomSheetBackground = const Color(0xFF252728), Color opacityBottomSheetBackground = const Color(0xFF252728), Color background = kImageEditorBackground, Color bottomBarBackground = kImageEditorBottomBarBackground, Color bottomBarActiveItemColor = kImageEditorPrimaryColor, Color bottomBarInactiveItemColor = const Color(0xFFEEEEEE), double initialStrokeWidth = 10.0, double initialOpacity = 1.0, SystemUiOverlayStyle uiOverlayStyle = kImageEditorUiOverlayStyle, Color initialColor = const Color(0xffff0000)})
Creates an instance of the PaintEditorStyle class with the specified style properties.
const

Properties

appBarBackground Color
Background color of the app bar.
final
appBarColor Color
Color of the app bar.
final
background Color
Background color of the paint editor.
final
bottomBarActiveItemColor Color
Color of active items in the bottom navigation bar.
final
bottomBarBackground Color
Background color of the bottom 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
lineWidthBottomSheetBackground 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
opacityBottomSheetBackground 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
uiOverlayStyle SystemUiOverlayStyle
UI overlay style, defining the appearance of system status bars.
final

Methods

copyWith({Color? bottomBarBackground, Color? appBarColor, Color? appBarBackground, Color? background, Color? bottomBarActiveItemColor, Color? bottomBarInactiveItemColor, Color? lineWidthBottomSheetBackground, Color? opacityBottomSheetBackground, TextStyle? lineWidthBottomSheetTitle, TextStyle? opacityBottomSheetTitle, double? initialStrokeWidth, double? initialOpacity, Color? initialColor, SystemUiOverlayStyle? uiOverlayStyle}) PaintEditorStyle
Creates a copy of this PaintEditorStyle object with the given fields replaced with new values.
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