FStyle class
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.
- Implemented types
- Mixed-in types
- Available extensions
Constructors
-
FStyle.new({required FFormFieldStyle formFieldStyle, required FFocusedOutlineStyle focusedOutlineStyle, required IconThemeData iconStyle, required FTappableStyle tappableStyle, BorderRadius borderRadius = const FLerpBorderRadius.all(Radius.circular(8), min: 24), double borderWidth = 1, EdgeInsets pagePadding = const EdgeInsets.symmetric(vertical: 8, horizontal: 12), List<
BoxShadow> shadow = const [BoxShadow(color: Color(0x0d000000), offset: Offset(0, 1), blurRadius: 2)]}) -
Creates an FStyle.
const
- FStyle.inherit({required FColors colors, required FTypography typography})
- Creates an FStyle that inherits its properties.
Properties
- borderRadius → BorderRadius
-
The border radius. Defaults to
FLerpBorderRadius.circular(8)
.final - borderWidth → double
-
The border width. Defaults to 1.
final
- focusedOutlineStyle → FFocusedOutlineStyle
-
The focused outline style.
final
- formFieldStyle → FFormFieldStyle
-
The style for the form field.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconStyle → IconThemeData
-
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
-
shadow
→ List<
BoxShadow> -
The shadow used for elevated widgets.
final
- tappableStyle → FTappableStyle
-
The tappable style.
final
Methods
-
copyWith(
{FFormFieldStyle? formFieldStyle, FFocusedOutlineStyle? focusedOutlineStyle, IconThemeData? iconStyle, BorderRadius? borderRadius, double? borderWidth, EdgeInsets? pagePadding, List< BoxShadow> ? shadow, FTappableStyle? tappableStyle}) → FStyle -
Returns a copy of this FStyle with the given properties replaced.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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
-
transform(
T function(T)) → T -
Available on T, provided by the FTransformables extension
Transform thisT
using the givenfunction
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited