DynamicSize class

A class for dynamically sizing widgets based on screen dimensions.

The DynamicSize class provides methods for calculating the desired height and width based on the provided initial height and width values. It also includes methods for creating SizedBox widgets with dynamic heights and widths, as well as a method for creating a Container widget with dynamic dimensions and other customizable properties.

Constructors

DynamicSize(double _height, double _width)
Constructs a new DynamicSize object with the provided initial height and width values.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dContainer({AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, BoxConstraints? constraints, EdgeInsetsGeometry? margin, Matrix4? transform, AlignmentGeometry? transformAlignment, Widget? child, Clip clipBehavior = Clip.none}) Widget
Creates a Container widget with dynamic dimensions and other customizable properties.
height(double value) double
Calculates the dynamic height based on the provided value and the screen dimensions.
heightSpace(double value) Widget
Creates a SizedBox widget with a dynamic height based on the provided value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
width(double value) double
Calculates the dynamic width based on the provided value and the screen dimensions.
widthSpace(double value) Widget
Creates a SizedBox widget with a dynamic width based on the provided value.

Operators

operator ==(Object other) bool
The equality operator.
inherited