TextEditorTheme class
The TextEditorTheme
class defines the theme for the text editor in the image editor.
It includes properties such as colors for the app bar, background, text input, and more.
Usage:
TextEditorTheme textEditorTheme = TextEditorTheme(
appBarBackgroundColor: Colors.black,
appBarForegroundColor: Colors.white,
background: Colors.grey.withOpacity(0.6),
inputHintColor: Colors.grey,
inputCursorColor: Colors.blue,
);
Properties:
-
appBarBackgroundColor
: Background color of the app bar in the text editor. -
appBarForegroundColor
: Foreground color (text and icons) of the app bar. -
background
: Background color of the text editor. -
inputHintColor
: Color of input hints in the text editor. -
inputCursorColor
: Color of the input cursor in the text editor.
Example Usage:
TextEditorTheme textEditorTheme = TextEditorTheme(
appBarBackgroundColor: Colors.black,
appBarForegroundColor: Colors.white,
background: Colors.grey.withOpacity(0.6),
inputHintColor: Colors.grey,
inputCursorColor: Colors.blue,
);
Color appBarBackgroundColor = textEditorTheme.appBarBackgroundColor;
Color background = textEditorTheme.background;
// Access other theme properties...
Constructors
- TextEditorTheme({Color appBarBackgroundColor = imageEditorAppBarColor, Color appBarForegroundColor = const Color(0xFFE1E1E1), Color background = const Color(0x9B000000), Color bottomBarBackgroundColor = const Color(0xFF000000), Color inputHintColor = const Color(0xFFBDBDBD), Color inputCursorColor = imageEditorPrimaryColor})
-
Creates an instance of the
TextEditorTheme
class with the specified theme properties.const
Properties
- appBarBackgroundColor → Color
-
Background color of the app bar in the text editor.
final
- appBarForegroundColor → Color
-
Foreground color (text and icons) of the app bar.
final
- background → Color
-
Background color of the text editor.
final
- bottomBarBackgroundColor → Color
-
Background color of the bottom bar in the text editor.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputCursorColor → Color
-
Color of the input cursor in the text editor.
final
- inputHintColor → Color
-
Color of input hints in the text editor.
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