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({Color appBarBackgroundColor = imageEditorAppBarColor, Color lineWidthBottomSheetColor = const Color(0xFF252728), Color appBarForegroundColor = const Color(0xFFE1E1E1), Color background = imageEditorBackgroundColor, Color bottomBarColor = imageEditorAppBarColor, Color bottomBarActiveItemColor = imageEditorPrimaryColor, Color bottomBarInactiveItemColor = const Color(0xFFEEEEEE)})
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
lineWidthBottomSheetColor Color
Color of the bottom sheet used to select line width.
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