BoustroThemeData class
Contains data for BoustroTheme.
Constructors
- BoustroThemeData.fallback({required Brightness brightness})
-
Default boustro theme for
brightness
. Has a non-null value for all fields.factory - BoustroThemeData.fallbackForContext(BuildContext context)
-
Default boustro theme for
context
. Has a non-null value for all fields.factory - BoustroThemeData.fallbackForTheme(ThemeData theme)
-
Default boustro theme for
theme
. Has a non-null value for all fields.factory - BoustroThemeData.raw({required Color? editorColor, required EdgeInsetsGeometry? editorPadding, required BoxDecoration? toolbarDecoration, required double? toolbarHeight, required double? toolbarItemExtent, required EdgeInsetsGeometry? toolbarPadding, required Duration? toolbarFadeDuration, required EdgeInsetsGeometry? linePadding, required EdgeInsetsGeometry? embedPadding})
-
Create a boustro theme with all properties set.
const
Properties
- editorColor → Color?
-
Background color of a DocumentEditor.
final
- editorPadding → EdgeInsetsGeometry?
-
Padding inside the scrollable part of a DocumentEditor.
final
- embedPadding → EdgeInsetsGeometry?
-
Padding for embeds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- linePadding → EdgeInsetsGeometry?
-
Padding for lines of text.
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
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - toolbarDecoration → BoxDecoration?
-
Color and decoration for a Toolbar.
final
- toolbarFadeDuration → Duration?
-
Duration to crossfade when the toolbar items change (because of a nested
menu).
final
- toolbarHeight → double?
-
Height of a Toolbar.
final
- toolbarItemExtent → double?
-
Extent for items in Toolbar.
final
- toolbarPadding → EdgeInsetsGeometry?
-
Padding around Toolbar. toolbarDecoration is
outside of this padding and the items are inside it.
final
Methods
-
copyWith(
{Color? editorColor, EdgeInsetsGeometry? editorPadding, double? editorFreeSpace, BoxDecoration? toolbarDecoration, double? toolbarHeight, double? toolbarItemExtent, EdgeInsetsGeometry? toolbarPadding, Duration? toolbarFadeDuration, EdgeInsetsGeometry? linePadding, EdgeInsetsGeometry? embedPadding}) → BoustroThemeData - Create a copy of this theme with passed fields replaced with the new value.
-
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 Properties
- dark ↔ BoustroThemeData
-
Default dark theme. Has a non-null value for all fields.
getter/setter pair
- light ↔ BoustroThemeData
-
Default light theme. Has a non-null value for all fields.
getter/setter pair
Static Methods
-
lerp(
BoustroThemeData a, BoustroThemeData b, double t) → BoustroThemeData - Linearly interpolate between two boustro themes.