TablePlusEditableTheme class
Theme configuration for cell editing.
Constructors
- TablePlusEditableTheme({Color editingCellColor = const Color(0xFFFFF9C4), TextStyle editingTextStyle = const TextStyle(fontSize: 14, color: Color(0xFF212121)), TextStyle? hintStyle, Color editingBorderColor = const Color(0xFF2196F3), double editingBorderWidth = 2.0, BorderRadius editingBorderRadius = const BorderRadius.all(Radius.circular(4.0)), EdgeInsets textFieldPadding = const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0), EdgeInsets cellContainerPadding = const EdgeInsets.all(8.0), Color cursorColor = const Color(0xFF2196F3), TextAlignVertical textAlignVertical = TextAlignVertical.center, Color? focusedBorderColor, Color? enabledBorderColor, BorderRadius? borderRadius, Color? fillColor, bool filled = false, bool isDense = true})
-
Creates a TablePlusEditableTheme with the specified styling properties.
const
Properties
- borderRadius → BorderRadius?
-
The border radius for the text field decoration.
If null, uses editingBorderRadius.
final
- cellContainerPadding → EdgeInsets
-
The padding for the container that wraps the text field during editing.
This controls the space around the text field within the cell.
final
- cursorColor → Color
-
The cursor color in the text field.
final
- editingBorderColor → Color
-
The border color for cells that are currently being edited.
final
- editingBorderRadius → BorderRadius
-
The border radius for cells that are currently being edited.
final
- editingBorderWidth → double
-
The border width for cells that are currently being edited.
final
- editingCellColor → Color
-
The background color for cells that are currently being edited.
final
- editingTextStyle → TextStyle
-
The text style for text inside editing text fields.
final
- enabledBorderColor → Color?
-
The border color when the text field is enabled but not focused.
If null, uses a lighter version of editingBorderColor.
final
- fillColor → Color?
-
The fill color for the text field.
If null, uses editingCellColor.
final
- filled → bool
-
Whether the text field should be filled with fillColor.
final
- focusedBorderColor → Color?
-
The border color when the text field is focused.
If null, uses editingBorderColor.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintStyle → TextStyle?
-
The text style for hint text in editing text fields.
final
- isDense → bool
-
Whether the text field should use dense layout.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textAlignVertical → TextAlignVertical
-
The vertical alignment of text in the text field.
final
- textFieldPadding → EdgeInsets
-
The padding inside the text field when editing.
final
Methods
-
copyWith(
{Color? editingCellColor, TextStyle? editingTextStyle, TextStyle? hintStyle, Color? editingBorderColor, double? editingBorderWidth, BorderRadius? editingBorderRadius, EdgeInsets? textFieldPadding, EdgeInsets? cellContainerPadding, Color? cursorColor, TextAlignVertical? textAlignVertical, Color? focusedBorderColor, Color? enabledBorderColor, BorderRadius? borderRadius, Color? fillColor, bool? filled, bool? isDense}) → TablePlusEditableTheme - Creates a copy of this theme with the given fields replaced with new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scaledBy(
double factor) → TablePlusEditableTheme -
Returns a new TablePlusEditableTheme with dimensional values scaled by
factor. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited