shadcn/util library

Constants

kDefaultDuration → const Duration

Functions

gap(double gap, {double? crossGap}) Widget
isMobile(TargetPlatform platform) bool
join(Iterable<Widget> widgets, Widget separator) Iterable<Widget>
lerpColor(Color a, Color b, double t) Color
Linearly interpolate between two colors. Also handles the case when one of the colors is transparent, where Color.lerp fails to handle.
mergeAnimatedTextStyle({Key? key, TextStyle? style, required Widget child, Curve curve = Curves.linear, required Duration duration, VoidCallback? onEnd, TextAlign? textAlign, bool? softWrap, TextOverflow? overflow, int? maxLines, TextWidthBasis? textWidthBasis}) Widget
subtractByBorder(BorderRadius radius, double borderWidth) BorderRadius
tweenValue<T>(T begin, T end, double t) → T
wrapDouble(double value, double min, double max) double

Typedefs

ContextedCallback = void Function(BuildContext context)
ContextedValueChanged<T> = void Function(BuildContext context, T value)