SBBBaseStyle class
- Inheritance
-
- Object
- ThemeExtension<
SBBBaseStyle> - SBBBaseStyle
- Available extensions
Constructors
- SBBBaseStyle.new({Color? primaryColor, Color? primaryColorDark, MaterialColor? primarySwatch, Color? backgroundColor, String? defaultFontFamily, Color? defaultTextColor, TextStyle? defaultTextStyle, Color? dividerColor, double? defaultRootContainerPadding, Color? iconColor, Brightness? brightness, bool boldFont = false, Color? labelColor, TextTheme? redTextTheme})
- SBBBaseStyle.$default({required Brightness brightness, bool boldFont = false})
-
factory
Properties
- backgroundColor → Color?
-
final
- boldFont → bool
-
final
- brightness → Brightness?
-
final
- defaultFontFamily → String?
-
final
- defaultRootContainerPadding → double?
-
final
- defaultTextColor → Color?
-
final
- defaultTextStyle → TextStyle?
-
final
- dividerColor → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → Color?
-
final
- labelColor → Color?
-
final
- primaryColor → Color?
-
final
- primaryColorDark → Color?
-
final
- primarySwatch → MaterialColor?
-
final
- redTextTheme ↔ TextTheme
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Object
-
The extension's type.
no setterinherited
Methods
-
$resolve<
T> (T lightThemeValue, T darkThemeValue) → T -
copyWith(
{Color? primaryColor, Color? primaryColorDark, MaterialColor? primarySwatch, Color? backgroundColor, String? fontFamily, Color? defaultTextColor, TextStyle? defaultTextStyle, Color? dividerColor, double? defaultRootContainerPadding, Color? iconColor, Brightness? brightness, bool? boldFont, Color? labelColor, TextTheme? redTextTheme}) → ThemeExtension< SBBBaseStyle> -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
createTextTheme(
{Color? colorOverride}) → TextTheme -
lerp(
covariant ThemeExtension< SBBBaseStyle> ? other, double t) → ThemeExtension<SBBBaseStyle> -
Linearly interpolate with another ThemeExtension object.
override
-
merge(
SBBBaseStyle? other) → SBBBaseStyle -
Available on SBBBaseStyle?, provided by the StyleExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
themedTextStyle(
{TextStyle? textStyle, Color? color, String? fontFamily}) → TextStyle -
themeValue<
T> (T lightThemeValue, T darkThemeValue) → T -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → SBBBaseStyle -
resolve<
T> (bool isLight, T lightThemeValue, T darkThemeValue) → T