FStyle class final
A set of miscellaneous properties that is part of a FThemeData.
These properties are not used directly by Forui widgets. Instead, they are the defaults for the corresponding
properties of widget styles configured via inherit(...)
constructors.
- Mixed-in types
Constructors
- FStyle({required FFormFieldStyle enabledFormFieldStyle, required FFormFieldStyle disabledFormFieldStyle, required FFormFieldErrorStyle errorFormFieldStyle, required FIconStyle iconStyle, required FFocusedOutlineStyle focusedOutlineStyle, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)), double borderWidth = 1, EdgeInsets pagePadding = const EdgeInsets.symmetric(vertical: 8, horizontal: 12)})
- Creates an FStyle.
- FStyle.inherit({required FColorScheme colorScheme, required FTypography typography})
- Creates an FStyle that inherits its properties from the given FColorScheme and FTypography.
Properties
- borderRadius → BorderRadius
-
The border radius. Defaults to
BorderRadius.circular(8)
.final - borderWidth → double
-
The border width. Defaults to 1.
final
- disabledFormFieldStyle → FFormFieldStyle
-
The style for the form field when it is disabled.
final
- enabledFormFieldStyle → FFormFieldStyle
-
The style for the form field when it is enabled.
final
- errorFormFieldStyle → FFormFieldErrorStyle
-
The style for the form field when it has an error.
final
- focusedOutlineStyle → FFocusedOutlineStyle
-
The focused outline style.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- iconStyle → FIconStyle
-
The icon style.
final
- pagePadding → EdgeInsets
-
The page's padding. Defaults to
EdgeInsets.symmetric(vertical: 8, horizontal: 12)
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{FFormFieldStyle? enabledFormFieldStyle, FFormFieldStyle? disabledFormFieldStyle, FFormFieldErrorStyle? errorFormFieldStyle, FFocusedOutlineStyle? focusedOutlineStyle, FIconStyle? iconStyle, BorderRadius? borderRadius, double? borderWidth, EdgeInsets? pagePadding}) → FStyle - Returns a copy of this FStyle with the given properties replaced.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override