FluidConfig class
- Inheritance
-
- Object
- ThemeExtension<
FluidConfig> - FluidConfig
- Available extensions
- Annotations
Constructors
- FluidConfig.new(double screenWidth, {SpaceConfig spaceConfig = const SpaceConfig(), TypeConfig typeConfig = const TypeConfig(), ViewportConfig viewportConfig = const ViewportConfig()})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenWidth → double
-
final
- space → FluidSpaceHelper
-
no setter
- spaceConfig → SpaceConfig
-
final
- spaces → FluidSpaces
-
no setter
- type → Object
-
The extension's type.
no setterinherited
- typeConfig → TypeConfig
-
final
- viewportConfig → ViewportConfig
-
final
Methods
-
copyWith(
{double? screenWidth, SpaceConfig? spaceConfig, TypeConfig? typeConfig, ViewportConfig? viewportConfig}) → FluidConfig -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
fontSize(
int scale, {FluidConfig? fluidConfig}) → double -
fromGoogleFont(
TextStyle googleFontFunction({Paint? background, Color? backgroundColor, Color? color, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, List< FontFeature> ? fontFeatures, double? fontSize, FontStyle? fontStyle, FontWeight? fontWeight, Paint? foreground, double? height, double? letterSpacing, Locale? locale, List<Shadow> ? shadows, TextBaseline? textBaseline, TextStyle? textStyle, double? wordSpacing})) → TextScaleHelper -
Available on FluidConfig, provided by the TextScaleConfigExtension extension
-
lerp(
covariant ThemeExtension< FluidConfig> ? other, double t) → ThemeExtension<FluidConfig> -
Linearly interpolate with another ThemeExtension object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
size(
{required double min, required double max}) → double -
toString(
) → String -
A string representation of this object.
inherited
-
typeSize(
int scale, {FluidConfig? fluidConfig}) → double
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromContext(
BuildContext context, {SpaceConfig spaceConfig = const SpaceConfig(), TypeConfig typeConfig = const TypeConfig(), ViewportConfig viewportConfig = const ViewportConfig()}) → FluidConfig -
of(
BuildContext context, {double? screenWidth}) → FluidConfig