avocado_utils library

Classes

ActiveMouseTracker
AutoFlex
A widget that displays its children in a one-dimensional array.
BufferedLogger
Button
ButtonController
ButtonDefaultForeground
ButtonDefaultMouseCursor
ButtonRichStateProperty<T>
Checkbox
A checkbox based on the Flutter framework's material checkbox.
CheckboxStyle
CheckboxTheme
ColorSchemeDemo
CompletedAnimation
Divider
Similar to the Flutter framework Divider, except it uses SnapEffect to align a divider's line with device pixels if the line fits into a pixel grid.
ExtendedButtonStyle
IconAssertion
IconButton
IconButtonTheme
Inflexible
InkResponse
A version of the Flutter framework InkResponse that allows to customize highlightFadeDuration and can be of a maintained button type. It also can take a controller which gives more control over the state of an ink response to ancestor widgets.
InputPadding
Labeled
LerpProperties<T>
Listener
Logger
MainAndCrossConstraints
MainAndCrossSize
MaintainedButtonController
MaterialStateColorTween
MaterialStatePropertyAll<T>
MaterialStateSizeTween
MultipassBuildElement
MultipassBuildState<T extends StatefulWidget>
MultipassBuildWidget
MutableRect
OffsetLogger
OverlappedPadding
OverlappedPaddingWidget
OverlayRouteBuilder<T>
PointerEventListenerState
Position
Radio<T>
A radio button based on the Flutter framework's material design radio button.
RadioStyle
RadioTheme
RenderOffsetLogger
RenderSnapEffect
RouteProvider<RouteT extends Route>
ScreenCapture
Shared<T>
SimpleDialogButton
When pressed, pops the top-most route off the route navigator.
SimpleDialogItem
An item to use with SimpleDialog.
SliderOverlappedPadding
SnapEffect
Theme

Enums

ButtonType
CrossAxisAlignment
FlexingBase
LogCategory
LogColor
MainAxisSpacing
Instructs what to do if there is free space left that should be filled.

Extensions

ListExtenstion on List<T>

Constants

actionDimStyleEsc → const String
actionStyleEsc → const String
anyNonDirectionalAlignment → const Alignment
dimGreenTextEsc → const String
dimRedTextEsc → const String
greyTextEsc → const String
infiniteDirectionalInsets → const EdgeInsetsDirectional
kAnimationDuration → const Duration
kButtonDimension → const double
kButtonIconSize → const double
kButtonMargin → const double
kButtonPadding → const double
kButtonRadius → const double
kCheckboxSize → const double
kDensestButtonMargin → const double
kDensestPadding → const double
kFocusOverlayColor → const Color
kHoverOverlayColor → const Color
kIconSize → const double
kListTileHorzSpacing → const double
kListTilePadding → const EdgeInsetsDirectional
kListTileVertSpacing → const double
kMaterialRadioSize → const double
kMaxButtonSize → const Size
kMinButtonSize → const Size
kPadding → const double
kPadding00625 → const double
kPadding0125 → const double
kPadding025 → const double
kPadding05 → const double
kPadding075 → const double
kRadioOuterRadius → const double
kRadioSize → const double
kRadioStrokeWidth → const double
kRadius → const double
kThumbDiameter → const double
kThumbRadius → const double
kUnit → const double
kUnit025 → const double
kUnit05 → const double
kUnit2 → const double
kUnit3 → const double
logDefault → const bool
logInk → const bool
logMouse → const bool
logOff → const bool
logStackTraces → const bool
resetEsc → const String
succinctLogMode → const bool
topLevelLogColor → const LogColor

Properties

dimTextEsc String
final
kListTileEnlargedStarPadding double
final
lightTextEsc String
final
lineIndex int
getter/setter pair

Functions

ancestorsString(BuildContext context, {Type? highlightedType, String highlightedEsc = actionStyleEsc, String resetEsc = resetEsc}) String
as<T>(dynamic value) → T?
atMostOneIsTrue3(bool a, bool b, bool c) bool
backgroundEscape(Color color) String
barHeight([VisualDensity visualDensity = const VisualDensity()]) double
buttonStyleFrom({Color? foregroundColor, Color? backgroundColor, Color? hoverColor, Color? pressColor, Color? selectionColor, Color? focusColor, Color? shadowColor, double? elevation, TextStyle? textStyle, EdgeInsetsGeometry? padding, Size? minimumSize, Size? fixedSize, Size? maximumSize, BorderSide? side, OutlinedBorder? shape, MouseCursor? enabledMouseCursor, MouseCursor? disabledMouseCursor, VisualDensity? visualDensity, MaterialTapTargetSize? tapTargetSize, Duration? animationDuration, bool? enableFeedback, AlignmentGeometry? alignment, InteractiveInkFeatureFactory? splashFactory}) ButtonStyle
ceilDevicePixelsOfLogicalPixelsSize(double size, {required double devicePixelRatio}) double
clamp<T extends num>(T num, T? lowerLimit, T? upperLimit) → T
clampDirectionalInsets(EdgeInsetsDirectional insets, [EdgeInsetsDirectional min = EdgeInsetsDirectional.zero, EdgeInsetsDirectional max = infiniteDirectionalInsets]) EdgeInsetsDirectional
closestEven(double given) double
closestOdd(double given) double
copyDirectionalInsets(EdgeInsetsDirectional insets, {double? start, double? top, double? end, double? bottom}) EdgeInsetsDirectional
copyRect(Rect rect, {double? left, double? top, double? right, double? bottom}) Rect
debugCheckHasActiveMouseTracker(BuildContext context) bool
deviceIsMobile(BuildContext context) bool
elementToString(BuildContext element) String
enforceMaxSize(Size size, Size constraints) Size
equalsAnyOf<T>(T value, List<T> list) bool
escForColor(LogColor color) String
findDescendantRenderObjectOfType<T>(RenderObject renderObject) → T?
foregroundEscape(Color color) String
getCurrentRoute(BuildContext context) Route
getHorzIntrinsicSize(RenderBox renderBox) Size
getVertIntrinsicSize(RenderBox renderBox) Size
globalRectToLocal(Rect globalRect, {required RenderBox localTo}) Rect
hasAncestors(Object object, List<String> strings) bool
hasBit(int bitfield, int bit) bool
indentString(int indent) String
isCharacter(String string) bool
isDigit(String character) bool
isLetter(String character) bool
isLowercaseLetter(String character) bool
isUppercaseLetter(String character) bool
lastIndexOf<T>(List<T> list) int
layoutChild(RenderBox child, BoxConstraints constraints) Size
length(TextRange range) int
lerpColor(Color a, Color b, double t) Color
lerpDouble(double? a, double? b, double t) double?
lerpEdgeInsetsGeometry(EdgeInsetsGeometry? a, EdgeInsetsGeometry? b, double t) EdgeInsetsGeometry?
lerpIfNotNulls<T>(T? a, T? b, double t, T? lerp(T, T, double)) → T?
lerpProperties<T>(MaterialStateProperty<T?>? a, MaterialStateProperty<T?>? b, double t, T? lerp(T?, T?, double)) MaterialStateProperty<T?>?
lerpSize(Size? a, Size? b, double t) Size?
lerpVisualDensity(VisualDensity a, VisualDensity b, double t) VisualDensity
listTileHeight([VisualDensity visualDensity = const VisualDensity()]) double
makeCollapsedRect(Offset offset) Rect
makeRect({Offset offset = Offset.zero, required Size size}) Rect
makeResolver<AggregateT>(AggregateT? first, AggregateT? second, [AggregateT? third]) ResolveProperty<AggregateT>
makeResolver4<AggregateT>(AggregateT? first, AggregateT? second, AggregateT? third, AggregateT fourth) ResolveProperty<AggregateT>
makeShortcutLabel(ShortcutActivator activator) String
mapToList<K, V, T>(Map<K, V> map, T f(K key, V value)) List<T>
mergeSliderStyles(SliderThemeData? first, SliderThemeData? second) SliderThemeData?
offsetToString(Offset offset, {int fractionDigits = 3}) String
onlyOneIsTrue3(bool a, bool b, bool c) bool
paintBounds(RenderBox renderBox, [RenderObject? ancestor]) Rect
pickGreater<T extends num>(T? first, T? second) → T?
pickLess<T extends num>(T? first, T? second) → T?
popCurrentRouteOfTypeIfAny<T extends Route>(BuildContext context) → void
prefixedToMatchDigitCount(int num, int digitCount) String
prefixToMatchDigitCount(int num, int digitCount) String
printAction(String string) → void
printElement(BuildContext element, {int indent = 0}) → void
printLogicalAndDevicePixels(double logicalX, [double? logicalY, String? string]) → void
printRenderObjectAncestorChain(RenderObject renderObject) → void
printStackTrace() → void
printStackTraceIfType(Object object, String type) → void
printState(State<StatefulWidget> state, {int indent = 0}) → void
rectFromPoints(Offset leftTop, Offset rightBottom) Rect
rectToString(dynamic rect, {int fractionDigits = 1}) String
renderObjectAncestorChain(RenderObject renderObject, {String separator = ' ← '}) String
renderObjectWidgetAncestorChain(RenderObject renderObject, {String separator = ' ← ', bool shortDesc = true}) String
resolveButtonRichStateProperty<T>(MaterialStateProperty<T?>? first, MaterialStateProperty<T?>? second, MaterialStateProperty<T?>? third) MaterialStateProperty<T?>?
resolveButtonStyle(ButtonStyle? first, ButtonStyle? second, ButtonStyle third) ButtonStyle
resolveDividerThemeData(DividerThemeData? first, DividerThemeData? second, DividerThemeData? third) DividerThemeData
resolveExtendedButtonStyle(ExtendedButtonStyle? first, ExtendedButtonStyle? second, ExtendedButtonStyle third) ExtendedButtonStyle
resolveIconThemeData(IconThemeData? first, IconThemeData? second, IconThemeData? third) IconThemeData
roundDevicePixelsOfLogicalPixelsOffset(Offset offset, {double? devicePixelRatio}) Offset
roundDevicePixelsOfLogicalPixelsSize(double size, {double? devicePixelRatio, double minDevicePixels = 0}) double
roundDevicePixelsOfLogicalPixelsSizeForContext(double size, {BuildContext? context, double minDevicePixels = 0}) double
secondOverlayOpacityFromFirstAndAddend(double firstOverlayOpacity, double addend) double
secondOverlayOpacityFromFirstAndResultingOpacityMultiplier(double firstOverlayOpacity, double resultingOpacityMultiplier) double
shouldOptimizeComponentsSizeForTouch(BuildContext context) bool
stateToString(State<StatefulWidget> state) String
stringFromChar(String char, [int length = 0]) String
subtractOverlappedPaddingIfAny(EdgeInsetsDirectional padding, Widget child, BuildContext context) EdgeInsetsDirectional
themeFromColorScheme(ColorScheme scheme) ThemeData
toDevicePixels(double logicalPixels, [BuildContext? context]) double
toDevicePixelsForRatio(double logicalPixels, {double? devicePixelRatio}) double
toLogicalPixels(double devicePixels, [BuildContext? context]) double
toLogicalPixelsForRatio(double logicalPixels, {double? devicePixelRatio}) double
visitRenderObjectAncestors(RenderObject renderObject, void visitor(RenderObject)) → void
visitRenderObjectDescendants(RenderObject renderObject, bool visitor(RenderObject child)) bool
widgetAncestorChainOf(Object object) String

Typedefs

ForEachTween = void Function(TweenVisitor visitor)
GetProperty<FieldT, AggregateT> = FieldT? Function(AggregateT obj)
PointerEventListener = void Function(PointerEvent event)
ResolveProperty<AggregateT> = FieldT? Function<FieldT>(FieldT? (AggregateT obj))
TweenVisitor = void Function(Tween tween, dynamic targetValue)