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
- SimpleDialogButton
- When pressed, pops the top-most route off the route navigator.
- SimpleDialogItem
- An item to use with SimpleDialog.
- SliderOverlappedPadding
- SnapEffect
- Theme
Mixins
-
AnimatedStateMixin<
T extends StatefulWidget> - Directional
- DirectionalRenderBox
- Printer
-
RemoveCompleterMixin<
T> -
StateLogger<
T extends StatefulWidget> - WidgetDebug
Extensions
Constants
- actionDimStyleEsc → const String
-
'\x1b[38;2;193;128;74m'
- actionStyleEsc → const String
-
'\x1b[38;5;215m'
- anyNonDirectionalAlignment → const Alignment
-
Alignment.topLeft
- dimGreenTextEsc → const String
-
'\x1b[38;2;75;141;70m'
- dimRedTextEsc → const String
-
'\x1b[38;5;1m'
- greyTextEsc → const String
-
'\x1b[38;5;8m'
- infiniteDirectionalInsets → const EdgeInsetsDirectional
-
EdgeInsetsDirectional.fromSTEB(double.infinity, double.infinity, double.infinity, double.infinity)
- kAnimationDuration → const Duration
-
Duration(milliseconds: 200)
- kButtonDimension → const double
-
kButtonIconSize + 2 * kButtonPadding
- kButtonIconSize → const double
-
kIconSize
- kButtonMargin → const double
-
kPadding025
- kButtonPadding → const double
-
kPadding05
- kButtonRadius → const double
-
kRadius / 2
- kCheckboxSize → const double
-
kThumbDiameter
- kDensestButtonMargin → const double
-
kPadding0125
- kDensestPadding → const double
-
kPadding025
- kFocusOverlayColor → const Color
-
Color.fromRGBO(255, 255, 255, 0.2)
- kHoverOverlayColor → const Color
-
Color.fromRGBO(255, 255, 255, 0.1)
- kIconSize → const double
-
18
- kListTileHorzSpacing → const double
-
kPadding
- kListTilePadding → const EdgeInsetsDirectional
-
EdgeInsetsDirectional.fromSTEB(kPadding, kPadding05, kPadding, kPadding05)
- kListTileVertSpacing → const double
-
kPadding05
- kMaterialRadioSize → const double
-
2 * kRadioOuterRadius + kRadioStrokeWidth
- kMaxButtonSize → const Size
-
Size(double.infinity, double.infinity)
- kMinButtonSize → const Size
-
Size.square(kButtonDimension)
- kPadding → const double
-
kUnit3
- kPadding00625 → const double
-
kPadding / 16
- kPadding0125 → const double
-
kPadding / 8
- kPadding025 → const double
-
kPadding / 4
- kPadding05 → const double
-
kPadding / 2
- kPadding075 → const double
-
kPadding05 + kPadding025
- kRadioOuterRadius → const double
-
8.0
- kRadioSize → const double
-
kThumbDiameter
- kRadioStrokeWidth → const double
-
2.0
- kRadius → const double
-
kUnit
- kThumbDiameter → const double
-
kThumbRadius * 2
- kThumbRadius → const double
-
kPadding00625 * 5
- kUnit → const double
-
8
- kUnit025 → const double
-
2
- kUnit05 → const double
-
4
- kUnit2 → const double
-
16
- kUnit3 → const double
-
24
- logDefault → const bool
-
true
- logInk → const bool
-
false
- logMouse → const bool
-
false
- logOff → const bool
-
false
- logStackTraces → const bool
-
true
- resetEsc → const String
-
'\x1b[0m'
- succinctLogMode → const bool
-
true
- topLevelLogColor → const LogColor
-
LogColor.action
Properties
- dimTextEsc → String
-
final
- kListTileEnlargedStarPadding → double
-
final
- lightTextEsc → String
-
final
- lineIndex ↔ int
-
read / write
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 -
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
Enums
- ButtonType
- CrossAxisAlignment
- FlexingBase
- LogCategory
- LogColor
- MainAxisSpacing
- Instructs what to do if there is free space left that should be filled.
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)