PaintingEditorTheme constructor

const PaintingEditorTheme({
  1. TextStyle? lineWidthBottomSheetTitle,
  2. Color appBarBackgroundColor = imageEditorAppBarColor,
  3. Color lineWidthBottomSheetColor = const Color(0xFF252728),
  4. Color appBarForegroundColor = const Color(0xFFE1E1E1),
  5. Color background = imageEditorBackgroundColor,
  6. Color bottomBarColor = imageEditorAppBarColor,
  7. Color bottomBarActiveItemColor = imageEditorPrimaryColor,
  8. Color bottomBarInactiveItemColor = const Color(0xFFEEEEEE),
  9. double initialStrokeWidth = 10.0,
  10. Color initialColor = const Color(0xffff0000),
})

Creates an instance of the PaintingEditorTheme class with the specified theme properties.

Implementation

const PaintingEditorTheme({
  this.lineWidthBottomSheetTitle,
  this.appBarBackgroundColor = imageEditorAppBarColor,
  this.lineWidthBottomSheetColor = const Color(0xFF252728),
  this.appBarForegroundColor = const Color(0xFFE1E1E1),
  this.background = imageEditorBackgroundColor,
  this.bottomBarColor = imageEditorAppBarColor,
  this.bottomBarActiveItemColor = imageEditorPrimaryColor,
  this.bottomBarInactiveItemColor = const Color(0xFFEEEEEE),
  this.initialStrokeWidth = 10.0,
  this.initialColor = const Color(0xffff0000),
}) : assert(initialStrokeWidth > 0, 'initialStrokeWidth must be positive');