FxRadius mixin

A mixin that provides easy access to predefined border radius values.

This mixin contains static methods and getters to create various BorderRadius objects for different use cases in UI design, including continuous corner radius (squircle) and responsive radius methods that adapt to screen size.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

bottom10 BorderRadius
Provides a BorderRadius of 10 for the bottom corners.
no setter
bottom20 BorderRadius
Provides a BorderRadius of 20 for the bottom corners.
no setter
bottom30 BorderRadius
Provides a BorderRadius of 30 for the bottom corners.
no setter
bottom5 BorderRadius
Provides a BorderRadius of 5 for the bottom corners.
no setter
bottom50 BorderRadius
Provides a BorderRadius of 50 for the bottom corners.
no setter
bottomLeft10 BorderRadius
Provides a BorderRadius of 10 for the bottom-left corner.
no setter
bottomLeft20 BorderRadius
Provides a BorderRadius of 20 for the bottom-left corner.
no setter
bottomLeft30 BorderRadius
Provides a BorderRadius of 30 for the bottom-left corner.
no setter
bottomLeft5 BorderRadius
Provides a BorderRadius of 5 for the bottom-left corner.
no setter
bottomLeft50 BorderRadius
Provides a BorderRadius of 50 for the bottom-left corner.
no setter
bottomRight10 BorderRadius
Provides a BorderRadius of 10 for the bottom-right corner.
no setter
bottomRight20 BorderRadius
Provides a BorderRadius of 20 for the bottom-right corner.
no setter
bottomRight30 BorderRadius
Provides a BorderRadius of 30 for the bottom-right corner.
no setter
bottomRight5 BorderRadius
Provides a BorderRadius of 5 for the bottom-right corner.
no setter
bottomRight50 BorderRadius
Provides a BorderRadius of 50 for the bottom-right corner.
no setter
left10 BorderRadius
Provides a BorderRadius of 10 for the left corners.
no setter
left20 BorderRadius
Provides a BorderRadius of 20 for the left corners.
no setter
left30 BorderRadius
Provides a BorderRadius of 30 for the left corners.
no setter
left5 BorderRadius
Provides a BorderRadius of 5 for the left corners.
no setter
left50 BorderRadius
Provides a BorderRadius of 50 for the left corners.
no setter
none BorderRadius
Provides a BorderRadius with no rounded corners.
no setter
r10 BorderRadius
Provides a BorderRadius of 10 for all corners.
no setter
r20 BorderRadius
Provides a BorderRadius of 20 for all corners.
no setter
r30 BorderRadius
Provides a BorderRadius of 30 for all corners.
no setter
r5 BorderRadius
Provides a BorderRadius of 5 for all corners.
no setter
r50 BorderRadius
Provides a BorderRadius of 50 for all corners.
no setter
right10 BorderRadius
Provides a BorderRadius of 10 for the right corners.
no setter
right20 BorderRadius
Provides a BorderRadius of 20 for the right corners.
no setter
right30 BorderRadius
Provides a BorderRadius of 30 for the right corners.
no setter
right5 BorderRadius
Provides a BorderRadius of 5 for the right corners.
no setter
right50 BorderRadius
Provides a BorderRadius of 50 for the right corners.
no setter
top10 BorderRadius
Provides a BorderRadius of 10 for the top corners.
no setter
top20 BorderRadius
Provides a BorderRadius of 20 for the top corners.
no setter
top30 BorderRadius
Provides a BorderRadius of 30 for the top corners.
no setter
top5 BorderRadius
Provides a BorderRadius of 5 for the top corners.
no setter
top50 BorderRadius
Provides a BorderRadius of 50 for the top corners.
no setter
topLeft10 BorderRadius
Provides a BorderRadius of 10 for the top-left corner.
no setter
topLeft20 BorderRadius
Provides a BorderRadius of 20 for the top-left corner.
no setter
topLeft30 BorderRadius
Provides a BorderRadius of 30 for the top-left corner.
no setter
topLeft5 BorderRadius
Provides a BorderRadius of 5 for the top-left corner.
no setter
topLeft50 BorderRadius
Provides a BorderRadius of 50 for the top-left corner.
no setter
topRight10 BorderRadius
Provides a BorderRadius of 10 for the top-right corner.
no setter
topRight20 BorderRadius
Provides a BorderRadius of 20 for the top-right corner.
no setter
topRight30 BorderRadius
Provides a BorderRadius of 30 for the top-right corner.
no setter
topRight5 BorderRadius
Provides a BorderRadius of 5 for the top-right corner.
no setter
topRight50 BorderRadius
Provides a BorderRadius of 50 for the top-right corner.
no setter

Static Methods

adaptiveOrientation(BuildContext context, {required double portraitRadius, required double landscapeRadius}) BorderRadius
Creates a border radius that adapts to the device orientation.
all(double radius) BorderRadius
Creates a BorderRadius with the same value for all corners of a rectangle.
bottom(double radius) BorderRadius
Creates a BorderRadius for the bottom side of a rectangle.
bottomLeft(double radius) BorderRadius
Creates a BorderRadius for the bottom-left corner of a rectangle.
bottomRight(double radius) BorderRadius
Creates a BorderRadius for the bottom-right corner of a rectangle.
left(double radius) BorderRadius
Creates a BorderRadius for the left side of a rectangle.
notBottomLeft(double radius) BorderRadius
Creates a BorderRadius for all corners except the bottom-left corner of a rectangle.
notBottomRight(double radius) BorderRadius
Creates a BorderRadius for all corners except the bottom-right corner of a rectangle.
notTopLeft(double radius) BorderRadius
Creates a BorderRadius for all corners except the top-left corner of a rectangle.
notTopRight(double radius) BorderRadius
Creates a BorderRadius for all corners except the top-right corner of a rectangle.
only({double? topLeft, double? topRight, double? bottomLeft, double? bottomRight}) BorderRadius
Creates a BorderRadius with custom values for each corner of a rectangle.
responsive(BuildContext context, double radiusPercent, {double minRadius = 4.0, double maxRadius = 100.0}) BorderRadius
Creates a responsive border radius that adapts to the screen size.
responsiveCorners(BuildContext context, double radiusPercent, {bool topLeft = true, bool topRight = true, bool bottomLeft = true, bool bottomRight = true, double minRadius = 4.0, double maxRadius = 100.0}) BorderRadius
Creates a responsive border radius for specific corners that adapts to the screen size.
Creates a BorderRadius for the right side of a rectangle.
squircle(double radius) BorderRadius
Creates a continuous corner radius (squircle) effect with the specified radius.
top(double radius) BorderRadius
Creates a BorderRadius for the top side of a rectangle.
topLeft(double radius) BorderRadius
Creates a BorderRadius for the top-left corner of a rectangle.
topRight(double radius) BorderRadius
Creates a BorderRadius for the top-right corner of a rectangle.