FilterEditorTheme class
The FilterEditorTheme
class defines the theme for the filter editor in the image editor.
It includes properties such as colors for the app bar, background, and preview text.
Usage:
FilterEditorTheme filterEditorTheme = FilterEditorTheme(
appBarBackgroundColor: Colors.black,
appBarForegroundColor: Colors.white,
background: Colors.grey,
previewTextColor: Colors.blue,
);
Properties:
-
appBarBackgroundColor
: Background color of the app bar in the filter editor. -
appBarForegroundColor
: Foreground color (text and icons) of the app bar. -
background
: Background color of the filter editor. -
previewTextColor
: Color of the preview text.
Example Usage:
FilterEditorTheme filterEditorTheme = FilterEditorTheme(
appBarBackgroundColor: Colors.black,
appBarForegroundColor: Colors.white,
background: Colors.grey,
previewTextColor: Colors.blue,
);
Color appBarBackgroundColor = filterEditorTheme.appBarBackgroundColor;
Color background = filterEditorTheme.background;
// Access other theme properties...
Constructors
- FilterEditorTheme({Color appBarBackgroundColor = imageEditorAppBarColor, Color appBarForegroundColor = const Color(0xFFE1E1E1), Color previewTextColor = const Color(0xFFE1E1E1), Color previewSelectedTextColor = const Color.fromARGB(255, 34, 148, 242), Color background = imageEditorBackgroundColor, double filterListSpacing = 15, EdgeInsets filterListMargin = const EdgeInsets.fromLTRB(8, 4, 8, 10)})
-
Creates an instance of the
FilterEditorTheme
class with the specified theme properties.const
Properties
- appBarBackgroundColor → Color
-
Background color of the app bar in the filter editor.
final
- appBarForegroundColor → Color
-
Foreground color (text and icons) of the app bar.
final
- background → Color
-
Background color of the filter editor.
final
- filterListMargin → EdgeInsets
-
The margin around the filter list.
final
- filterListSpacing → double
-
The spacing between items in the filter list.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- previewSelectedTextColor → Color
-
Color of the selected preview text.
final
- previewTextColor → Color
-
Color of the preview text.
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