PaintingEditorTheme constructor
const
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.
Implementation
const PaintingEditorTheme({
this.lineWidthBottomSheetTitle,
this.opacityBottomSheetTitle,
this.appBarBackgroundColor = imageEditorAppBarColor,
this.lineWidthBottomSheetColor = const Color(0xFF252728),
this.opacityBottomSheetColor = 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.initialOpacity = 1.0,
this.initialColor = const Color(0xffff0000),
}) : assert(initialStrokeWidth > 0, 'initialStrokeWidth must be positive'),
assert(initialOpacity >= 0 && initialOpacity <= 1,
'initialOpacity must be between 0 and 1');