CalculatorTheme class
Holds the color and typography values for the DynamicCalculator.
Constructors
- CalculatorTheme({Color? displayBackgroundColor, double borderWidth = 1.0, double displayCalculatorRadius = 10, Color? expressionBackgroundColor, Color? borderColor, Color? operatorColor, Color? commandColor, Color? numColor, TextStyle? displayStyle, TextStyle? expressionStyle, TextStyle? operatorStyle, TextStyle? commandStyle, TextStyle? numStyle})
-
const
Properties
- borderColor → Color?
-
The color to use when painting the line.
final
- borderWidth → double
-
Width of the divider border, which is usually 1.0.
final
- commandColor → Color?
-
The background color of command buttons.
final
- commandStyle → TextStyle?
-
The text style to use for command buttons.
final
- displayBackgroundColor → Color?
-
The color of the display panel background.
final
- displayCalculatorRadius → double
-
Width of the divider border, which is usually 1.0.
final
- displayStyle → TextStyle?
-
The text style to use for the display panel.
final
- expressionBackgroundColor → Color?
-
The background color of the expression area.
final
- expressionStyle → TextStyle?
-
The text style to use for the expression area.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- numColor → Color?
-
The background color of number buttons.
final
- numStyle → TextStyle?
-
The text style to use for number buttons.
final
- operatorColor → Color?
-
The background color of operator buttons.
final
- operatorStyle → TextStyle?
-
The text style to use for operator buttons.
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