FStyle class - forui.theme library (original) (raw)

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.

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.

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 thehashCode.

inherited

transform(T function(T))→ T

Available on T, provided by the FTransformables extension

Transform this T using the given function.