xlerate library
'xlerate' is the core dependency of this package and is usually imported for extensions text-creators and etc.
mainly used in android and ios apps Mobile.
Classes
- Box
- Decorate
-
The
Decorateclass in Dart provides a convenient way to create and customize aBoxDecorationobject with various properties such as border radius, background blend mode, border, color, shadows, gradient, shape, and image. - ReactiveBtn
- Shaper
-
The
Shaperclass in Dart is a utility class that helps create different types of shape borders for widgets. - SizeConfig
- TextCreator
-
The
TextCreatorclass in Dart is a utility class that allows you to easily createTextwidgets with customizable styles and properties.
Enums
- Al
-
The code defines an enum called
Alwhich represents different alignment options for widgets in Flutter. Each alignment option is associated with a specificAlignmentGeometryvalue from theflutter/widgets.dartpackage. - ShapeChoice
-
The
enum ShapeChoice { roundedrectborder, stadiumborder }is defining an enumeration calledShapeChoicewith two possible values:roundedrectborderandstadiumborder. This enumeration is used to represent the different choices for the shape of a border. - TxtAl
-
The code defines an enumeration called
TxtAlthat represents different text alignments. Each value in the enumeration is associated with aTextAlignvalue. Thevaluefield is used to store the correspondingTextAlignvalue for each enumeration value. Theconst TxtAl(this.value)constructor is used to initialize thevaluefield for each enumeration value.
Extensions
- AlignCntrExt on Widget
- AspectRatioExt on Widget
- BoolExt on bool
- Buildctx on BuildContext
- CnctionStateExt on ConnectionState
- DateTimeExt on DateTime
- ExpandedExt on Widget
- FittedBoxExt on Widget
- FracSzdBox on Widget
- LimitedBoxExt on Widget
- NullStringExt on Object?
- NumExt on int
- OnTapExt on Widget
- PaddingExt on Widget
- PositionedExt on Widget
- SizeConfigForDouble on num
- Adding extension over the double data type for easy access.
- SizedBoxExt on num
- SizedBoxExtWidget on Widget
- SliverToBoxAdaptarExt on Widget
- StringExt on String
- TextExt on Text
Functions
-
curveBttm(
{double rad = 20}) → BorderRadius -
The function returns a
BorderRadiusobject with only the bottom corners curved. -
curveCorners(
{double rad = 20}) → BorderRadius -
The function returns a
BorderRadiusobject with curved corners, where the radius of the curves is specified by theradparameter (default value is 20). -
curveOnly(
{double tl = 0, double tr = 0, double bl = 0, double br = 0}) → BorderRadius -
The
curveOnlyfunction in Dart creates aBorderRadiuswith specified corner radii. -
curveTop(
{double rad = 20}) → BorderRadius -
The function returns a
BorderRadiusobject with only the top corners curved.