GeneralTheme class
Constructors
- GeneralTheme({bool isDark = true, Color backgroundColor = const Color.fromRGBO(41, 43, 53, 1.0), Color sidebarColor = const Color.fromRGBO(33, 37, 43, 1.0), Color accentColor = const Color.fromARGB(255, 40, 138, 251), double spaceBetweenTextBoxesAndButtonRows = 0.5, double defaultNumberEditorButtonRowWidth = 64.0, Duration scrollIntoViewDuration = const Duration(milliseconds: 250)})
-
Creates a “general” theme object.
const
Properties
- accentColor → Color
-
The accent color, currently used only for the decoration of the focused
tab.
final
- backgroundColor → Color
-
The color of the manual widget tester's background.
final
- defaultNumberEditorButtonRowWidth → double
-
The default width of the number editor button row.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDark → bool
-
Whether this is a dark theme.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollIntoViewDuration → Duration
-
The duration of the scroll animation that plays when a widget is moved
into view.
final
-
The color of the manual widget tester's sidebar.
final
- spaceBetweenTextBoxesAndButtonRows → double
-
The space between text boxes and connected button rows.
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.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
Static Methods
-
fromThemeGeneratorParameters(
ThemeGeneratorParameters parameters) → GeneralTheme