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({TextStyle? fontSizeBottomSheetTitle, EdgeInsets textFieldMargin = const EdgeInsets.only(bottom: kBottomNavigationBarHeight), Color appBarBackgroundColor = imageEditorAppBarColor, Color appBarForegroundColor = const Color(0xFFE1E1E1), Color background = const Color(0x9B000000), Color bottomBarBackgroundColor = const Color(0xFF000000), MainAxisAlignment bottomBarMainAxisAlignment = MainAxisAlignment.spaceEvenly, 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
bottomBarMainAxisAlignment MainAxisAlignment
How the children should be placed along the main axis.
final
fontSizeBottomSheetTitle TextStyle?
Title of the bottom sheet used to select the font-size.
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
textFieldMargin EdgeInsets
Margin value around the textField.
final

Methods

copyWith({Color? appBarBackgroundColor, Color? bottomBarBackgroundColor, Color? appBarForegroundColor, Color? background, Color? inputHintColor, Color? inputCursorColor, MainAxisAlignment? bottomBarMainAxisAlignment, EdgeInsets? textFieldMargin, TextStyle? fontSizeBottomSheetTitle}) TextEditorTheme
Creates a copy of this TextEditorTheme object with the given fields replaced with new values.
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